Class BooleanValue

  • All Implemented Interfaces:
    Comparable<FieldValue>

    public abstract class BooleanValue
    extends FieldValue
    A FieldValue instance representing a boolean value. Boolean values are singleton final instances and never constructed.
    • Method Detail

      • trueInstance

        public static BooleanValue trueInstance()
        Returns a singleton instance representing a true BooleanValue
        Returns:
        the value
      • falseInstance

        public static BooleanValue falseInstance()
        Returns a singleton instance representing a false BooleanValue
        Returns:
        the value
      • getInstance

        public static BooleanValue getInstance​(boolean value)
        Returns a singleton instance representing the boolean value provided.
        Parameters:
        value - the value
        Returns:
        the value
      • getValue

        public abstract boolean getValue()
        Returns the boolean value of the field
        Returns:
        the value
      • compareTo

        public int compareTo​(FieldValue other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • sizeof

        public long sizeof()