Record Class BooleanValue
java.lang.Object
java.lang.Record
org.microbean.attributes.BooleanValue
- Record Components:
value- the value
- All Implemented Interfaces:
Comparable<BooleanValue>,Constable,Value<BooleanValue>
A
Value whose value is a boolean.- Author:
- Laird Nelson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanValueTheBooleanValuerepresentingfalse.static final BooleanValueTheBooleanValuerepresentingtrue. -
Constructor Summary
ConstructorsConstructorDescriptionBooleanValue(boolean value) Creates an instance of aBooleanValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal intcompareTo(BooleanValue other) final Optional<DynamicConstantDesc<BooleanValue>> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static final BooleanValueof(boolean b) Returns aBooleanValuesuitable for the supplied arguments.final StringtoString()Returns a string representation of this record class.booleanvalue()Returns the value of thevaluerecord component.
-
Field Details
-
TRUE
TheBooleanValuerepresentingtrue. -
FALSE
TheBooleanValuerepresentingfalse.
-
-
Constructor Details
-
BooleanValue
Creates an instance of aBooleanValuerecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<BooleanValue>
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
of
Returns aBooleanValuesuitable for the supplied arguments. -
value
-