Record Class ITerminalRowColumnProvider.RowsAndColumns
java.lang.Object
java.lang.Record
org.cyclops.integratedterminals.api.terminalstorage.ITerminalRowColumnProvider.RowsAndColumns
- Enclosing interface:
- ITerminalRowColumnProvider
public static record ITerminalRowColumnProvider.RowsAndColumns(int rows, int columns)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRowsAndColumns(int rows, int columns) Creates an instance of aRowsAndColumnsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.introws()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RowsAndColumns
public RowsAndColumns(int rows, int columns) Creates an instance of aRowsAndColumnsrecord class.- Parameters:
rows- the value for therowsrecord componentcolumns- the value for thecolumnsrecord 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. All components in this record class are compared with '=='. -
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-