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_new
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenew_depth
record component.new_hash()
Returns the value of thenew_hash
record component.old()
Returns the value of theold
record component.Returns the value of theold_depth
record component.old_hash()
Returns the value of theold_hash
record component.final String
toString()
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 aBlockStateUpdate
record class.- Parameters:
_new
- the value for the_new
record componentnew_depth
- the value for thenew_depth
record componentnew_hash
- the value for thenew_hash
record componentold
- the value for theold
record componentold_depth
- the value for theold_depth
record componentold_hash
- the value for theold_hash
record 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_new
record component.- Returns:
- the value of the
_new
record component
-
new_depth
Returns the value of thenew_depth
record component.- Returns:
- the value of the
new_depth
record component
-
new_hash
Returns the value of thenew_hash
record component.- Returns:
- the value of the
new_hash
record component
-
old
Returns the value of theold
record component.- Returns:
- the value of the
old
record component
-
old_depth
Returns the value of theold_depth
record component.- Returns:
- the value of the
old_depth
record component
-
old_hash
Returns the value of theold_hash
record component.- Returns:
- the value of the
old_hash
record component
-