Package org.bremersee.comparator
Class ComparatorBuilder.DefaultComparatorBuilder
java.lang.Object
org.bremersee.comparator.ComparatorBuilder.DefaultComparatorBuilder
- All Implemented Interfaces:
ComparatorBuilder
- Enclosing interface:
- ComparatorBuilder
public static class ComparatorBuilder.DefaultComparatorBuilder
extends Object
implements ComparatorBuilder
The default comparator builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bremersee.comparator.ComparatorBuilder
ComparatorBuilder.DefaultComparatorBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Comparator<?> comparator) Adds the given comparator to this builder.<T> Comparator<T>
build()
Build comparator.
-
Constructor Details
-
DefaultComparatorBuilder
public DefaultComparatorBuilder()
-
-
Method Details
-
add
Description copied from interface:ComparatorBuilder
Adds the given comparator to this builder.- Specified by:
add
in interfaceComparatorBuilder
- Parameters:
comparator
- the comparator (can benull
- then no comparator is added)- Returns:
- the comparator builder
-
build
Description copied from interface:ComparatorBuilder
Build comparator.- Specified by:
build
in interfaceComparatorBuilder
- Type Parameters:
T
- the type parameter- Returns:
- the comparator
-