Record Class ProgramOrientationPathsGenerator.PathPart

java.lang.Object
java.lang.Record
org.ametys.odf.content.ProgramOrientationPathsGenerator.PathPart
Record Components:
id - unique identifier for this path part
parentId - ID of the parent (Program or SubProgram) containing these years
parentType - the type of the parent
title - title describing this part of the path
description - description of this part
minYear - minimum year level in this path
maxYear - maximum year level in this path
containers - list of containers that make up this part
nextPartIds - 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 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 a PathPart record class.
      Parameters:
      id - the value for the id record component
      parentId - the value for the parentId record component
      parentType - the value for the parentType record component
      title - the value for the title record component
      description - the value for the description record component
      minYear - the value for the minYear record component
      maxYear - the value for the maxYear record component
      containers - the value for the containers record component
      nextPartIds - the value for the nextPartIds record component
      isGrouped - the value for the isGrouped record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • parentId

      public String parentId()
      Returns the value of the parentId record component.
      Returns:
      the value of the parentId record component
    • parentType

      public String parentType()
      Returns the value of the parentType record component.
      Returns:
      the value of the parentType record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • minYear

      public int minYear()
      Returns the value of the minYear record component.
      Returns:
      the value of the minYear record component
    • maxYear

      public int maxYear()
      Returns the value of the maxYear record component.
      Returns:
      the value of the maxYear record component
    • containers

      Returns the value of the containers record component.
      Returns:
      the value of the containers record component
    • nextPartIds

      public List<String> nextPartIds()
      Returns the value of the nextPartIds record component.
      Returns:
      the value of the nextPartIds record component
    • isGrouped

      public boolean isGrouped()
      Returns the value of the isGrouped record component.
      Returns:
      the value of the isGrouped record component