Class DoubleProperty

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IBasicStoreableObject, IPlainDataObject

    public class DoubleProperty
    extends Property
    This class represents a double property (the mapping for double attributes).
    Since:
    1.1
    Version:
    $Id: $Id
    Author:
    another
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleProperty​(java.lang.String name, double value)
      Creates a new DoubleProperty with given name and value.
      DoubleProperty​(java.lang.String name, java.lang.Double value)
      Creates a new DoubleProperty with given name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object cloneValue()
      cloneValue.
      double getdouble()
      getdouble.
      java.lang.Double getDouble()
      getDouble.
      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.
      void setDouble​(java.lang.Double aValue)
      Sets the value of this property to given Float value.
      void setFloat​(double aValue)
      Sets the value of this property to given float value.
      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

      • DoubleProperty

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

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

      • getDouble

        public java.lang.Double getDouble()

        getDouble.

        Returns:
        the value of this property as Float object.
      • getdouble

        public double getdouble()

        getdouble.

        Returns:
        the value of this property as float.
      • setFloat

        public void setFloat​(double aValue)
        Sets the value of this property to given float value.
        Parameters:
        aValue - a double.
      • setDouble

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

        public void setValue​(java.lang.Object o)
        Sets the value of this Property. Sets the value of this property to given value, whether the value can be a Float or a String.
        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).
        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.