public interface TreeSetStrategy<T extends Comparable<T>> extends IsSortedSetStrategy<TreeSet<T>,T>
Strategy for a tree set.
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
create()
Creates a new tree set strategy.
|
default TreeSet<T> |
get()
Returns a new collection of requested type.
|
default TreeSet<T> |
get(Collection<T> collection)
Returns a new collection for the given collection.
|
default TreeSet<T> |
get(Collection<T> collection,
Comparator<T> comparator)
Returns a new collection for the given collection.
|
default TreeSet<T> |
get(Comparator<T> comparator)
Returns a new collection of requested type.
|
isList, isQueue, isSetdefault TreeSet<T> get(Collection<T> collection)
IsSortedSetStrategyReturns a new collection for the given collection.
get in interface IsCollectionStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>get in interface IsSetStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>get in interface IsSortedSetStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>collection - input collectiondefault TreeSet<T> get(Collection<T> collection, Comparator<T> comparator)
IsSortedSetStrategyReturns a new collection for the given collection.
get in interface IsSortedSetStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>collection - input collectioncomparator - comparator for objectsdefault TreeSet<T> get()
IsSortedSetStrategyReturns a new collection of requested type.
get in interface IsCollectionStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>get in interface IsSetStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>get in interface IsSortedSetStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>default TreeSet<T> get(Comparator<T> comparator)
IsSortedSetStrategyReturns a new collection of requested type.
get in interface IsSortedSetStrategy<TreeSet<T extends Comparable<T>>,T extends Comparable<T>>comparator - comparator for objectsstatic <T extends Comparable<T>> TreeSetStrategy<T> create()
Creates a new tree set strategy.
T - type for the objects in the sorted setCopyright © 2016–2017. All rights reserved.