Record Class DropOffResourceOutcome
java.lang.Object
java.lang.Record
idlab.colonyops.model.events.DropOffResourceOutcome
- Record Components:
deposited- the crate contents at the moment of deposit (i.e. what was handed over)
- All Implemented Interfaces:
ActionOutcome
public record DropOffResourceOutcome(Map<ResourceType, Integer> deposited)
extends Record
implements ActionOutcome
Outcome for a successfully applied
DropOffResourceAction.
Tells how much the colony's extracted-resource totals grew.-
Constructor Summary
ConstructorsConstructorDescriptionDropOffResourceOutcome(Map<ResourceType, Integer> deposited) Creates an instance of aDropOffResourceOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedepositedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DropOffResourceOutcome
Creates an instance of aDropOffResourceOutcomerecord class.- Parameters:
deposited- the value for thedepositedrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
deposited
-