Enum Class IndividualResultColumns

java.lang.Object
java.lang.Enum<IndividualResultColumns>
com.endurancetrio.app.event.enumerator.IndividualResultColumns
All Implemented Interfaces:
Serializable, Comparable<IndividualResultColumns>, Constable

public enum IndividualResultColumns extends Enum<IndividualResultColumns>
The IndividualResultColumns enum defines the columns that can appear in individual race result tables. Each constant pairs a column code, used in Thymeleaf templates to control column visibility, with a Predicate that determines whether the column should be rendered based on the data in an IndividualResultDTO.

Column activation follows an OPEN-group heuristic: a column is included in the active set when at least one result in the OPEN group satisfies its predicate. Three categories exist:

  • Always-active columns (RANK, ATHLETE, TOTAL) via r -> true.
  • Field-present columns, active when the corresponding DTO field is non-null (e.g. SWIM, T1, BIKE).
  • Conditional columns with custom predicates (e.g. TEAM requires a non-blank team short name).