java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.gql.BlockStateUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_new()Returns the value of the_newrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenew_depthrecord component.new_hash()Returns the value of thenew_hashrecord component.old()Returns the value of theoldrecord component.Returns the value of theold_depthrecord component.old_hash()Returns the value of theold_hashrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockStateUpdate
public BlockStateUpdate(String _new, Integer new_depth, String new_hash, String old, Integer old_depth, String old_hash) Creates an instance of aBlockStateUpdaterecord class.- Parameters:
_new- the value for the_newrecord componentnew_depth- the value for thenew_depthrecord componentnew_hash- the value for thenew_hashrecord componentold- the value for theoldrecord componentold_depth- the value for theold_depthrecord componentold_hash- the value for theold_hashrecord 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 withObjects::equals(Object,Object). -
_new
Returns the value of the_newrecord component.- Returns:
- the value of the
_newrecord component
-
new_depth
Returns the value of thenew_depthrecord component.- Returns:
- the value of the
new_depthrecord component
-
new_hash
Returns the value of thenew_hashrecord component.- Returns:
- the value of the
new_hashrecord component
-
old
Returns the value of theoldrecord component.- Returns:
- the value of the
oldrecord component
-
old_depth
Returns the value of theold_depthrecord component.- Returns:
- the value of the
old_depthrecord component
-
old_hash
Returns the value of theold_hashrecord component.- Returns:
- the value of the
old_hashrecord component
-