Record Class PushResult
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.machine.PushResult
- Record Components:
moved- amount that left this machine: delivered directly, or placed in escrow for a cross-region handoff (ยง16.3)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPushResult(@NotNull PushResult.Kind kind, long moved) Creates an instance of aPushResultrecord 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.@NotNull PushResult.Kindkind()Returns the value of thekindrecord component.longmoved()Returns the value of themovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NO_TARGET
-
BUSY
-
-
Constructor Details
-
PushResult
Creates an instance of aPushResultrecord class.- Parameters:
kind- the value for thekindrecord componentmoved- the value for themovedrecord 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. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
moved
-