Record Class BoxChars
java.lang.Object
java.lang.Record
com.robinloom.jweaver.card.BoxChars
-
Constructor Summary
ConstructorsConstructorDescriptionBoxChars(char tl, char tr, char bl, char br, char v, char h) Creates an instance of aBoxCharsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncharbl()Returns the value of theblrecord component.charbr()Returns the value of thebrrecord component.final booleanIndicates whether some other object is "equal to" this one.charh()Returns the value of thehrecord component.h(int n) final inthashCode()Returns a hash code value for this object.chartl()Returns the value of thetlrecord component.final StringtoString()Returns a string representation of this record class.chartr()Returns the value of thetrrecord component.charv()Returns the value of thevrecord component.
-
Constructor Details
-
BoxChars
public BoxChars(char tl, char tr, char bl, char br, char v, char h) Creates an instance of aBoxCharsrecord class.- Parameters:
tl- the value for thetlrecord componenttr- the value for thetrrecord componentbl- the value for theblrecord componentbr- the value for thebrrecord componentv- the value for thevrecord componenth- the value for thehrecord component
-
-
Method Details
-
h
-
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 with thecomparemethod from their corresponding wrapper classes. -
tl
public char tl()Returns the value of thetlrecord component.- Returns:
- the value of the
tlrecord component
-
tr
public char tr()Returns the value of thetrrecord component.- Returns:
- the value of the
trrecord component
-
bl
public char bl()Returns the value of theblrecord component.- Returns:
- the value of the
blrecord component
-
br
public char br()Returns the value of thebrrecord component.- Returns:
- the value of the
brrecord component
-
v
public char v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-
h
public char h()Returns the value of thehrecord component.- Returns:
- the value of the
hrecord component
-