Record Class MazeLayout.Portal
java.lang.Object
java.lang.Record
dev.despical.mazeengine.core.MazeLayout.Portal
- Enclosing class:
MazeLayout
Identifies a boundary cell and the side opening to the outside.
The cell index belongs to the layout's logical grid. The side defines the external opening used by the block plan and arrival geometry; it is not an additional internal edge when routing or counting dead ends.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcell()Returns the value of thecellrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Portal
Creates an instance of aPortalrecord class.- Parameters:
cell- the value for thecellrecord componentside- the value for thesiderecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
cell
public int cell()Returns the value of thecellrecord component.- Returns:
- the value of the
cellrecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-