Record Class MPGDTrapezoidGeant4Factory.SectorDimensions
java.lang.Object
java.lang.Record
org.jlab.detector.geant4.v2.MPGD.trapezoid.MPGDTrapezoidGeant4Factory.SectorDimensions
- Enclosing class:
MPGDTrapezoidGeant4Factory
public static record MPGDTrapezoidGeant4Factory.SectorDimensions(double halfThickness, double halfHeight, double halfLargeBase, double halfSmallBase, double tiltRad)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSectorDimensions(double halfThickness, double halfHeight, double halfLargeBase, double halfSmallBase, double tiltRad) Creates an instance of aSectorDimensionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thehalfHeightrecord component.doubleReturns the value of thehalfLargeBaserecord component.doubleReturns the value of thehalfSmallBaserecord component.doubleReturns the value of thehalfThicknessrecord component.final inthashCode()Returns a hash code value for this object.doubletiltRad()Returns the value of thetiltRadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SectorDimensions
public SectorDimensions(double halfThickness, double halfHeight, double halfLargeBase, double halfSmallBase, double tiltRad) Creates an instance of aSectorDimensionsrecord class.- Parameters:
halfThickness- the value for thehalfThicknessrecord componenthalfHeight- the value for thehalfHeightrecord componenthalfLargeBase- the value for thehalfLargeBaserecord componenthalfSmallBase- the value for thehalfSmallBaserecord componenttiltRad- the value for thetiltRadrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
halfThickness
public double halfThickness()Returns the value of thehalfThicknessrecord component.- Returns:
- the value of the
halfThicknessrecord component
-
halfHeight
public double halfHeight()Returns the value of thehalfHeightrecord component.- Returns:
- the value of the
halfHeightrecord component
-
halfLargeBase
public double halfLargeBase()Returns the value of thehalfLargeBaserecord component.- Returns:
- the value of the
halfLargeBaserecord component
-
halfSmallBase
public double halfSmallBase()Returns the value of thehalfSmallBaserecord component.- Returns:
- the value of the
halfSmallBaserecord component
-
tiltRad
public double tiltRad()Returns the value of thetiltRadrecord component.- Returns:
- the value of the
tiltRadrecord component
-