Package dev.gothickit.zenkit.bsp
Record Class CachedBinarySpacePartitionSector
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.bsp.CachedBinarySpacePartitionSector
- All Implemented Interfaces:
BinarySpacePartitionSector,CacheableObject<CachedBinarySpacePartitionSector>
public record CachedBinarySpacePartitionSector(@NotNull String name, int @NotNull [] nodeIndices, int @NotNull [] portalPolygonIndices)
extends Record
implements BinarySpacePartitionSector
-
Constructor Summary
ConstructorsConstructorDescriptionCachedBinarySpacePartitionSector(@NotNull String name, int @NotNull [] nodeIndices, int @NotNull [] portalPolygonIndices) Creates an instance of aCachedBinarySpacePartitionSectorrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedBinarySpacePartitionSectorcache()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisCached()@NotNull Stringname()Returns the value of thenamerecord component.int @NotNull []Returns the value of thenodeIndicesrecord component.int @NotNull []Returns the value of theportalPolygonIndicesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedBinarySpacePartitionSector
public CachedBinarySpacePartitionSector(@NotNull @NotNull String name, int @NotNull [] nodeIndices, int @NotNull [] portalPolygonIndices) Creates an instance of aCachedBinarySpacePartitionSectorrecord class.- Parameters:
name- the value for thenamerecord componentnodeIndices- the value for thenodeIndicesrecord componentportalPolygonIndices- the value for theportalPolygonIndicesrecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedBinarySpacePartitionSector>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedBinarySpacePartitionSector>
-
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceBinarySpacePartitionSector- Returns:
- the value of the
namerecord component
-
nodeIndices
public int @NotNull [] nodeIndices()Returns the value of thenodeIndicesrecord component.- Specified by:
nodeIndicesin interfaceBinarySpacePartitionSector- Returns:
- the value of the
nodeIndicesrecord component
-
portalPolygonIndices
public int @NotNull [] portalPolygonIndices()Returns the value of theportalPolygonIndicesrecord component.- Specified by:
portalPolygonIndicesin interfaceBinarySpacePartitionSector- Returns:
- the value of the
portalPolygonIndicesrecord component
-