Record Class Key.Bi
java.lang.Object
java.lang.Record
dev.pfaff.altargui.Key.Bi
- All Implemented Interfaces:
Key.CallSite
- Enclosing class:
Key
public static record Key.Bi(@NonNull Key.CallSite first, @NonNull Key.CallSite second)
extends Record
implements Key.CallSite
-
Constructor Summary
ConstructorsConstructorDescriptionBi
(@NonNull Key.CallSite first, @NonNull Key.CallSite second) Creates an instance of aBi
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
__()
final boolean
Indicates whether some other object is "equal to" this one.@NonNull Key.CallSite
first()
Returns the value of thefirst
record component.void
final int
hashCode()
Returns a hash code value for this object.@NonNull Key.CallSite
second()
Returns the value of thesecond
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Bi
Creates an instance of aBi
record class.- Parameters:
first
- the value for thefirst
record componentsecond
- the value for thesecond
record component
-
-
Method Details
-
hash
- Specified by:
hash
in interfaceKey.CallSite
-
__
public void __()- Specified by:
__
in interfaceKey.CallSite
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object)
. -
first
Returns the value of thefirst
record component.- Returns:
- the value of the
first
record component
-
second
Returns the value of thesecond
record component.- Returns:
- the value of the
second
record component
-