Record Class AbstractCheckpointStorage.Checkpoint
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.checkpoints.AbstractCheckpointStorage.Checkpoint
- Enclosing class:
AbstractCheckpointStorage
protected static record AbstractCheckpointStorage.Checkpoint(int id, String label, CheckpointExtension.CheckpointType type)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theidrecord component.private final StringThe field for thelabelrecord component.private final CheckpointExtension.CheckpointTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCheckpoint(int id, String label, CheckpointExtension.CheckpointType type) Creates an instance of aCheckpointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
label
The field for thelabelrecord component. -
type
The field for thetyperecord component.
-
-
Constructor Details
-
Checkpoint
Creates an instance of aCheckpointrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componenttype- the value for thetyperecord 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. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-