Record Class AMPSomFunctions.SoilLayers
java.lang.Object
java.lang.Record
net.simplace.sim.components.experimental.som.AMPSomFunctions.SoilLayers
- Enclosing class:
- AMPSomFunctions
-
Constructor Summary
ConstructorDescriptionSoilLayers
(Double[] LayerThickness, Double[] SoilLayerMid, double TotalDepth) Creates an instance of aSoilLayers
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Double[]
Returns the value of theLayerThickness
record component.Double[]
Returns the value of theSoilLayerMid
record component.final String
toString()
Returns a string representation of this record class.double
Returns the value of theTotalDepth
record component.
-
Constructor Details
-
SoilLayers
Creates an instance of aSoilLayers
record class.- Parameters:
LayerThickness
- the value for theLayerThickness
record componentSoilLayerMid
- the value for theSoilLayerMid
record componentTotalDepth
- the value for theTotalDepth
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
LayerThickness
Returns the value of theLayerThickness
record component.- Returns:
- the value of the
LayerThickness
record component
-
SoilLayerMid
Returns the value of theSoilLayerMid
record component.- Returns:
- the value of the
SoilLayerMid
record component
-
TotalDepth
public double TotalDepth()Returns the value of theTotalDepth
record component.- Returns:
- the value of the
TotalDepth
record component
-