Record Class LargeDepositTypeBias
java.lang.Object
java.lang.Record
idlab.colonyops.model.techtree.LargeDepositTypeBias
- Record Components:
resourceType- the resource type to favourweightBonus- the strength of the bias applied to that resource type
- All Implemented Interfaces:
TechEffect
public record LargeDepositTypeBias(ResourceType resourceType, int weightBonus)
extends Record
implements TechEffect
Biases the resource type of large deposits discovered via orbital scans towards
resourceType.-
Constructor Summary
ConstructorsConstructorDescriptionLargeDepositTypeBias(ResourceType resourceType, int weightBonus) Creates an instance of aLargeDepositTypeBiasrecord 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.Returns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theweightBonusrecord component.
-
Constructor Details
-
LargeDepositTypeBias
Creates an instance of aLargeDepositTypeBiasrecord class.- Parameters:
resourceType- the value for theresourceTyperecord componentweightBonus- the value for theweightBonusrecord 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. -
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
weightBonus
public int weightBonus()Returns the value of theweightBonusrecord component.- Returns:
- the value of the
weightBonusrecord component
-