Record Class BoxChars

java.lang.Object
java.lang.Record
com.robinloom.jweaver.card.BoxChars

public record BoxChars(char tl, char tr, char bl, char br, char v, char h) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    BoxChars(char tl, char tr, char bl, char br, char v, char h)
    Creates an instance of a BoxChars record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    char
    bl()
    Returns the value of the bl record component.
    char
    br()
    Returns the value of the br record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    char
    h()
    Returns the value of the h record component.
    h(int n)
     
    final int
    Returns a hash code value for this object.
    char
    tl()
    Returns the value of the tl record component.
    final String
    Returns a string representation of this record class.
    char
    tr()
    Returns the value of the tr record component.
    char
    v()
    Returns the value of the v record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BoxChars

      public BoxChars(char tl, char tr, char bl, char br, char v, char h)
      Creates an instance of a BoxChars record class.
      Parameters:
      tl - the value for the tl record component
      tr - the value for the tr record component
      bl - the value for the bl record component
      br - the value for the br record component
      v - the value for the v record component
      h - the value for the h record component
  • Method Details

    • h

      public String h(int n)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tl

      public char tl()
      Returns the value of the tl record component.
      Returns:
      the value of the tl record component
    • tr

      public char tr()
      Returns the value of the tr record component.
      Returns:
      the value of the tr record component
    • bl

      public char bl()
      Returns the value of the bl record component.
      Returns:
      the value of the bl record component
    • br

      public char br()
      Returns the value of the br record component.
      Returns:
      the value of the br record component
    • v

      public char v()
      Returns the value of the v record component.
      Returns:
      the value of the v record component
    • h

      public char h()
      Returns the value of the h record component.
      Returns:
      the value of the h record component