Enum Class IndividualResultColumns
java.lang.Object
java.lang.Enum<IndividualResultColumns>
com.endurancetrio.app.event.enumerator.IndividualResultColumns
- All Implemented Interfaces:
Serializable,Comparable<IndividualResultColumns>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetCode()booleanisActive(IndividualResultDTO result) Tests whether this column should be rendered for the given result.static IndividualResultColumnsReturns the enum constant of this class with the specified name.static IndividualResultColumns[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RANK
-
ATHLETE
-
AGE_GROUP
-
PARA_CLASS
-
TEAM
-
BIB
-
SWIM
-
FIRST_BIKE
-
FIRST_RUN
-
T1
-
BIKE
-
T2
-
RUN
-
SECOND_RUN
-
T3
-
SECOND_BIKE
-
TOTAL
-
GAP
-
POINTS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
-
isActive
Tests whether this column should be rendered for the given result.- Parameters:
result- the individual result to test- Returns:
trueif the column should be active based on the result's data
-