Class BooleanProperty

    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanProperty​(java.lang.String name, boolean value)
      Creates a new BooleanProperty with given name and value.
      BooleanProperty​(java.lang.String name, java.lang.Boolean value)
      Creates a new BooleanProperty with given name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object cloneValue()
      cloneValue.
      boolean getboolean()
      Returns the value of this Property as boolean data (primary type).
      java.lang.Boolean getBoolean()
      Returns the value of this Property as a Boolean 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.
      void setboolean​(boolean aValue)
      Sets the value of this property to the given boolean value.
      void setBoolean​(java.lang.Boolean aValue)
      Sets the value of this property to the given Boolean 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

      • BooleanProperty

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

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

      • getBoolean

        public java.lang.Boolean getBoolean()
        Returns the value of this Property as a Boolean object.
        Returns:
        a Boolean object.
      • getboolean

        public boolean getboolean()
        Returns the value of this Property as boolean data (primary type).
        Returns:
        a boolean.
      • setboolean

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

        public void setBoolean​(java.lang.Boolean aValue)
        Sets the value of this property to the given Boolean value.
        Parameters:
        aValue - a Boolean 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, which can be a Boolean 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). Returns the size of this property in bytes (one byte).
        Specified by:
        getSizeInBytes in class DataHolder
        Returns:
        a long.
        See Also:
        DataHolder.getSizeInBytes()
      • cloneValue

        protected java.lang.Object cloneValue()

        cloneValue.

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