Package app.babylon.table.column
Record Class ColumnBoolean.KeyedBoolean
java.lang.Object
java.lang.Record
app.babylon.table.column.ColumnBoolean.KeyedBoolean
- All Implemented Interfaces:
Column.KeyedValue
- Enclosing interface:
ColumnBoolean
public static record ColumnBoolean.KeyedBoolean(ColumnName key, boolean value, boolean isSet)
extends Record
implements Column.KeyedValue
-
Constructor Summary
ConstructorsConstructorDescriptionKeyedBoolean(ColumnName key, boolean value, boolean isSet) Creates an instance of aKeyedBooleanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSet()Returns the value of theisSetrecord component.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.booleanvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
KeyedBoolean
Creates an instance of aKeyedBooleanrecord class.- Parameters:
key- the value for thekeyrecord componentvalue- the value for thevaluerecord componentisSet- the value for theisSetrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceColumn.KeyedValue- Returns:
- the value of the
keyrecord component
-
value
public boolean value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
isSet
public boolean isSet()Returns the value of theisSetrecord component.- Specified by:
isSetin interfaceColumn.KeyedValue- Returns:
- the value of the
isSetrecord component
-