public static class FactoryProperties.ComparatorBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FactoryProperties.ComparatorBuilder.SortOrder
Defines the sort order.
|
static class |
FactoryProperties.ComparatorBuilder.SortProperty
Defines the item to sort by.
|
Modifier and Type | Method and Description |
---|---|
Comparator<FactoryProperties> |
build()
Builds the comparator.
|
FactoryProperties.ComparatorBuilder |
sortBy(FactoryProperties.ComparatorBuilder.SortProperty value)
Sets the sort by value for the builder.
|
FactoryProperties.ComparatorBuilder |
sortOrder(FactoryProperties.ComparatorBuilder.SortOrder value)
Sets the sort order value for the builder.
|
public FactoryProperties.ComparatorBuilder sortOrder(FactoryProperties.ComparatorBuilder.SortOrder value)
value
- the valuepublic FactoryProperties.ComparatorBuilder sortBy(FactoryProperties.ComparatorBuilder.SortProperty value)
value
- the valuepublic Comparator<FactoryProperties> build()