Record Class CharCharArray
java.lang.Object
java.lang.Record
org.aspectj.org.eclipse.jdt.internal.compiler.util.CharCharArray
- All Implemented Interfaces:
Comparable<CharCharArray>
Wrapper around char[][] that can be used as a key in a Map or Set.
-
Constructor Summary
ConstructorsConstructorDescriptionCharCharArray(char[][] key) Creates an instance of aCharCharArrayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CharCharArray other) booleanIndicates whether some other object is "equal to" this one.char[][]getKey()inthashCode()Returns a hash code value for this object.char[][]key()Returns the value of thekeyrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CharCharArray
public CharCharArray(char[][] key) Creates an instance of aCharCharArrayrecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CharCharArray>
-
getKey
public char[][] getKey() -
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). -
hashCode
-
toString
-
key
public char[][] key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-