Class ProjectScore.Categories
-
- All Implemented Interfaces:
public final class ProjectScore.CategoriesFor categorical-type project scores, the list of all categories
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceProjectScore.Categories.VisitorAn interface that defines how to map each variant of Categories to a value of type T.
public final classProjectScore.Categories.WeightedFor weighted-type project scores, the weights of each score
-
Method Summary
Modifier and Type Method Description final Optional<List<ProjectScoreCategory>>categorical()For categorical-type project scores, the list of all categories final Optional<ProjectScore.Categories.Weighted>weighted()For weighted-type project scores, the weights of each score final Optional<List<String>>minimum()For minimum-type project scores, the list of included scores final BooleanisCategorical()final BooleanisWeighted()final BooleanisMinimum()final List<ProjectScoreCategory>asCategorical()For categorical-type project scores, the list of all categories final ProjectScore.Categories.WeightedasWeighted()For weighted-type project scores, the weights of each score final List<String>asMinimum()For minimum-type project scores, the list of included scores final Optional<JsonValue>_json()final <T extends Any> Taccept(ProjectScore.Categories.Visitor<T> visitor)final ProjectScore.Categoriesvalidate()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectScore.CategoriesofCategorical(List<ProjectScoreCategory> categorical)For categorical-type project scores, the list of all categories final static ProjectScore.CategoriesofWeighted(ProjectScore.Categories.Weighted weighted)For weighted-type project scores, the weights of each score final static ProjectScore.CategoriesofMinimum(List<String> minimum)For minimum-type project scores, the list of included scores -
-
Method Detail
-
categorical
final Optional<List<ProjectScoreCategory>> categorical()
For categorical-type project scores, the list of all categories
-
weighted
final Optional<ProjectScore.Categories.Weighted> weighted()
For weighted-type project scores, the weights of each score
-
minimum
final Optional<List<String>> minimum()
For minimum-type project scores, the list of included scores
-
isCategorical
final Boolean isCategorical()
-
isWeighted
final Boolean isWeighted()
-
asCategorical
final List<ProjectScoreCategory> asCategorical()
For categorical-type project scores, the list of all categories
-
asWeighted
final ProjectScore.Categories.Weighted asWeighted()
For weighted-type project scores, the weights of each score
-
asMinimum
final List<String> asMinimum()
For minimum-type project scores, the list of included scores
-
accept
final <T extends Any> T accept(ProjectScore.Categories.Visitor<T> visitor)
-
validate
final ProjectScore.Categories validate()
-
ofCategorical
final static ProjectScore.Categories ofCategorical(List<ProjectScoreCategory> categorical)
For categorical-type project scores, the list of all categories
-
ofWeighted
final static ProjectScore.Categories ofWeighted(ProjectScore.Categories.Weighted weighted)
For weighted-type project scores, the weights of each score
-
ofMinimum
final static ProjectScore.Categories ofMinimum(List<String> minimum)
For minimum-type project scores, the list of included scores
-
-
-
-