Record Class BloodnameQuota.Result
java.lang.Object
java.lang.Record
mekhq.campaign.universe.commandGeneration.ratgen.BloodnameQuota.Result
- Record Components:
eligible- Clan warriors with a phenotype, the only people a Bloodname can go toquota- how many of them the force's calibre allows a BloodnamealreadyHeld- how many arrived with one from the rollawarded- how many were awarded one here
- Enclosing class:
BloodnameQuota
public static record BloodnameQuota.Result(int eligible, int quota, int alreadyHeld, int awarded)
extends Record
What the quota did.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int eligible, int quota, int alreadyHeld, int awarded) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thealreadyHeldrecord component.intawarded()Returns the value of theawardedrecord component.inteligible()Returns the value of theeligiblerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static BloodnameQuota.Resultnone()intquota()Returns the value of thequotarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(int eligible, int quota, int alreadyHeld, int awarded) Creates an instance of aResultrecord class.- Parameters:
eligible- the value for theeligiblerecord componentquota- the value for thequotarecord componentalreadyHeld- the value for thealreadyHeldrecord componentawarded- the value for theawardedrecord component
-
-
Method Details
-
none
-
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 with '=='. -
eligible
public int eligible()Returns the value of theeligiblerecord component.- Returns:
- the value of the
eligiblerecord component
-
quota
public int quota()Returns the value of thequotarecord component.- Returns:
- the value of the
quotarecord component
-
alreadyHeld
public int alreadyHeld()Returns the value of thealreadyHeldrecord component.- Returns:
- the value of the
alreadyHeldrecord component
-
awarded
public int awarded()Returns the value of theawardedrecord component.- Returns:
- the value of the
awardedrecord component
-