Record Class LivestockFunctions.PopulationRatesExtra
java.lang.Object
java.lang.Record
net.simplace.sim.components.experimental.livestock.LivestockFunctions.PopulationRatesExtra
- Enclosing class:
- LivestockFunctions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDouble[]
Balance()
Returns the value of theBalance
record component.Double[]
dBirth()
Returns the value of thedBirth
record component.Double[]
dDeath()
Returns the value of thedDeath
record component.Double[]
Returns the value of thedDeathNewBorn
record component.Double[]
dIntake()
Returns the value of thedIntake
record component.Double[]
dOfftake()
Returns the value of thedOfftake
record component.Double[]
Returns the value of thedOfftakeNewBorn
record component.Double[]
dRate()
Returns the value of thedRate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PopulationRatesExtra
public PopulationRatesExtra(Double[] dRate, Double[] dBirth, Double[] dDeath, Double[] dIntake, Double[] dOfftake, Double[] dDeathNewBorn, Double[] dOfftakeNewBorn, Double[] Balance) Creates an instance of aPopulationRatesExtra
record class.- Parameters:
dRate
- the value for thedRate
record componentdBirth
- the value for thedBirth
record componentdDeath
- the value for thedDeath
record componentdIntake
- the value for thedIntake
record componentdOfftake
- the value for thedOfftake
record componentdDeathNewBorn
- the value for thedDeathNewBorn
record componentdOfftakeNewBorn
- the value for thedOfftakeNewBorn
record componentBalance
- the value for theBalance
record component
-
-
Method Details
-
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 withObjects::equals(Object,Object)
. -
dRate
Returns the value of thedRate
record component.- Returns:
- the value of the
dRate
record component
-
dBirth
Returns the value of thedBirth
record component.- Returns:
- the value of the
dBirth
record component
-
dDeath
Returns the value of thedDeath
record component.- Returns:
- the value of the
dDeath
record component
-
dIntake
Returns the value of thedIntake
record component.- Returns:
- the value of the
dIntake
record component
-
dOfftake
Returns the value of thedOfftake
record component.- Returns:
- the value of the
dOfftake
record component
-
dDeathNewBorn
Returns the value of thedDeathNewBorn
record component.- Returns:
- the value of the
dDeathNewBorn
record component
-
dOfftakeNewBorn
Returns the value of thedOfftakeNewBorn
record component.- Returns:
- the value of the
dOfftakeNewBorn
record component
-
Balance
Returns the value of theBalance
record component.- Returns:
- the value of the
Balance
record component
-