Record Class LargeDepositFoundOutcome
java.lang.Object
java.lang.Record
idlab.colonyops.model.events.LargeDepositFoundOutcome
- Record Components:
colonyId- the colony whose scan discovered this depositdeposit- the newly discovered large resource deposit
- All Implemented Interfaces:
ActionOutcome
public record LargeDepositFoundOutcome(String colonyId, ResourceDeposit deposit)
extends Record
implements ActionOutcome
Outcome reported (not caused by a squad member's action) when a colony's orbital scan
discovers a large resource deposit. The
MissionEvent.subjectEntityId() is the newly
discovered deposit's entity ID and MissionEvent.subjectLocation() is the deposit's
location.-
Constructor Summary
ConstructorsConstructorDescriptionLargeDepositFoundOutcome(String colonyId, ResourceDeposit deposit) Creates an instance of aLargeDepositFoundOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolonyId()Returns the value of thecolonyIdrecord component.deposit()Returns the value of thedepositrecord 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
-
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). -
colonyId
-
deposit
-