Package org.daisy.dotify.api.factory
Class FactoryProperties.ComparatorBuilder
- java.lang.Object
-
- org.daisy.dotify.api.factory.FactoryProperties.ComparatorBuilder
-
- Enclosing interface:
- FactoryProperties
public static class FactoryProperties.ComparatorBuilder extends Object
Provides a comparator builder for factory properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFactoryProperties.ComparatorBuilder.SortOrderDefines the sort order.static classFactoryProperties.ComparatorBuilder.SortPropertyDefines the item to sort by.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<FactoryProperties>build()Builds the comparator.FactoryProperties.ComparatorBuildersortBy(FactoryProperties.ComparatorBuilder.SortProperty value)Sets the sort by value for the builder.FactoryProperties.ComparatorBuildersortOrder(FactoryProperties.ComparatorBuilder.SortOrder value)Sets the sort order value for the builder.
-
-
-
Method Detail
-
sortOrder
public FactoryProperties.ComparatorBuilder sortOrder(FactoryProperties.ComparatorBuilder.SortOrder value)
Sets the sort order value for the builder.- Parameters:
value- the value- Returns:
- this builder
-
sortBy
public FactoryProperties.ComparatorBuilder sortBy(FactoryProperties.ComparatorBuilder.SortProperty value)
Sets the sort by value for the builder.- Parameters:
value- the value- Returns:
- this builder
-
build
public Comparator<FactoryProperties> build()
Builds the comparator. Note that the returned comparator imposes orderings that are inconsistent with equals.- Returns:
- a comparator for factory properties
-
-