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 class
FactoryProperties.ComparatorBuilder.SortOrder
Defines the sort order.static class
FactoryProperties.ComparatorBuilder.SortProperty
Defines 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.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.
-
-
-
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
-
-