Package org.ametys.odf.content
Record Class ProgramOrientationPathsGenerator.OrientationPath
java.lang.Object
java.lang.Record
org.ametys.odf.content.ProgramOrientationPathsGenerator.OrientationPath
- Record Components:
minYear- minimum year level in this pathmaxYear- maximum year level in this pathparts- ordered list of path parts that make up this path
- Enclosing class:
ProgramOrientationPathsGenerator
public static record ProgramOrientationPathsGenerator.OrientationPath(int minYear, int maxYear, List<ProgramOrientationPathsGenerator.PathPart> parts)
extends Record
Represents a complete orientation path in the program.
-
Constructor Summary
ConstructorsConstructorDescriptionOrientationPath(int minYear, int maxYear, List<ProgramOrientationPathsGenerator.PathPart> parts) Creates an instance of aOrientationPathrecord 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.intmaxYear()Returns the value of themaxYearrecord component.intminYear()Returns the value of theminYearrecord component.parts()Returns the value of thepartsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrientationPath
public OrientationPath(int minYear, int maxYear, List<ProgramOrientationPathsGenerator.PathPart> parts) Creates an instance of aOrientationPathrecord class.
-
-
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
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 '=='. -
minYear
Returns the value of theminYearrecord component.- Returns:
- the value of the
minYearrecord component
-
maxYear
Returns the value of themaxYearrecord component.- Returns:
- the value of the
maxYearrecord component
-
parts
Returns the value of thepartsrecord component.- Returns:
- the value of the
partsrecord component
-