Class LongProperty

    • Constructor Summary

      Constructors 
      Constructor Description
      LongProperty​(java.lang.String name, long value)
      Creates a new LongProperty with given name and value.
      LongProperty​(java.lang.String name, java.lang.Long value)
      Creates a new LongProperty with given name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object cloneValue()
      cloneValue.
      long getlong()
      Returns the value of this property as long.
      java.lang.Long getLong()
      Returns the value of this property as Long object.
      PropertyType getPropertyType()
      getPropertyType.
      long getSizeInBytes()
      The 'size' of a DataHolder is needed for the quota calculation.
      The size of an atomic DataHolder like a Property should be the real amount of bytes it uses, whether the size of complex objects should be cumulated.
      The overhead for administration shouldn't be counted (i.e.
      long longValue()
      Returns the value of this property as long.
      void setLong​(long aValue)
      Sets the value of this property to the given value.
      void setLong​(java.lang.Long aValue)
      Sets the value of this property to the given Long object.
      void setValue​(java.lang.Object o)
      Sets the value of this Property.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LongProperty

        public LongProperty​(java.lang.String name,
                            long value)
        Creates a new LongProperty with given name and value.
        Parameters:
        name - a String object.
        value - a long.
      • LongProperty

        public LongProperty​(java.lang.String name,
                            java.lang.Long value)
        Creates a new LongProperty with given name and value.
        Parameters:
        name - a String object.
        value - a Long object.
    • Method Detail

      • getLong

        public java.lang.Long getLong()
        Returns the value of this property as Long object.
        Returns:
        a Long object.
      • getlong

        public long getlong()
        Returns the value of this property as long.
        Returns:
        a long.
      • longValue

        public long longValue()
        Returns the value of this property as long.
        Returns:
        a long.
      • setLong

        public void setLong​(long aValue)
        Sets the value of this property to the given value.
        Parameters:
        aValue - a long.
      • setLong

        public void setLong​(java.lang.Long aValue)
        Sets the value of this property to the given Long object.
        Parameters:
        aValue - a Long object.
      • setValue

        public void setValue​(java.lang.Object o)
        Sets the value of this Property. Sets the value of this property to the given value.
        Overrides:
        setValue in class Property
        Parameters:
        o - object to set
      • getSizeInBytes

        public long getSizeInBytes()
        The 'size' of a DataHolder is needed for the quota calculation.
        The size of an atomic DataHolder like a Property should be the real amount of bytes it uses, whether the size of complex objects should be cumulated.
        The overhead for administration shouldn't be counted (i.e. the size of an IntProperty is the amount of bytes needed to store the int value itself, not the amount of bytes needed to store the DataHolder object). Returns the size in bytes (8bytes = 64 bit datatype).
        Specified by:
        getSizeInBytes in class DataHolder
        Returns:
        a long.
      • cloneValue

        protected java.lang.Object cloneValue()

        cloneValue.

        Specified by:
        cloneValue in class Property
        Returns:
        a Object object.