Record Class EditBatch.Individual
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.world.EditBatch.Individual
- All Implemented Interfaces:
EditBatch.Segment
- Enclosing class:
EditBatch
public static record EditBatch.Individual(List<EditBatch.BlockChange> changes)
extends Record
implements EditBatch.Segment
-
Constructor Summary
ConstructorsConstructorDescriptionIndividual(List<EditBatch.BlockChange> changes) Creates an instance of aIndividualrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchange(int index) null means the client did not edit this cell.changes()Returns the value of thechangesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsize()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Individual
Creates an instance of aIndividualrecord class.- Parameters:
changes- the value for thechangesrecord component
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceEditBatch.Segment
-
change
Description copied from interface:EditBatch.Segmentnull means the client did not edit this cell.- Specified by:
changein interfaceEditBatch.Segment
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-