Package org.ametys.odf.content
Record Class ProgramOrientationPathsGenerator.PathPart
java.lang.Object
java.lang.Record
org.ametys.odf.content.ProgramOrientationPathsGenerator.PathPart
- Record Components:
id- unique identifier for this path partparentId- ID of the parent (Program or SubProgram) containing these yearsparentType- the type of the parenttitle- title describing this part of the pathdescription- description of this partminYear- minimum year level in this pathmaxYear- maximum year level in this pathcontainers- list of containers that make up this partnextPartIds- list of possible next path part IDs (for bifurcations)isGrouped- indicates if this part represents grouped years
- Enclosing class:
ProgramOrientationPathsGenerator
public static record ProgramOrientationPathsGenerator.PathPart(String id, String parentId, String parentType, String title, String description, int minYear, int maxYear, List<Container> containers, List<String> nextPartIds, boolean isGrouped)
extends Record
Represents a part of a path, which can span multiple consecutive years under the same parent.
Years are grouped together if they share the same parent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainersrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanReturns the value of theisGroupedrecord component.intmaxYear()Returns the value of themaxYearrecord component.intminYear()Returns the value of theminYearrecord component.Returns the value of thenextPartIdsrecord component.parentId()Returns the value of theparentIdrecord component.Returns the value of theparentTyperecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PathPart
public PathPart(String id, String parentId, String parentType, String title, String description, int minYear, int maxYear, List<Container> containers, List<String> nextPartIds, boolean isGrouped) Creates an instance of aPathPartrecord class.- Parameters:
id- the value for theidrecord componentparentId- the value for theparentIdrecord componentparentType- the value for theparentTyperecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentminYear- the value for theminYearrecord componentmaxYear- the value for themaxYearrecord componentcontainers- the value for thecontainersrecord componentnextPartIds- the value for thenextPartIdsrecord componentisGrouped- the value for theisGroupedrecord 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
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
parentType
Returns the value of theparentTyperecord component.- Returns:
- the value of the
parentTyperecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
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
-
containers
Returns the value of thecontainersrecord component.- Returns:
- the value of the
containersrecord component
-
nextPartIds
Returns the value of thenextPartIdsrecord component.- Returns:
- the value of the
nextPartIdsrecord component
-
isGrouped
Returns the value of theisGroupedrecord component.- Returns:
- the value of the
isGroupedrecord component
-