public interface IsSortedSetStrategy<S extends SortedSet<T>,T extends Comparable<T>> extends IsSetStrategy<S,T>
Base for sorted set strategies.
| Modifier and Type | Method and Description |
|---|---|
S |
get()
Returns a new collection of requested type.
|
S |
get(Collection<T> collection)
Returns a new collection for the given collection.
|
S |
get(Collection<T> collection,
Comparator<T> comparator)
Returns a new collection for the given collection.
|
S |
get(Comparator<T> comparator)
Returns a new collection of requested type.
|
default boolean |
isList()
Test if the collection is a list.
|
default boolean |
isQueue()
Test if the collection is a queue.
|
default boolean |
isSet()
Test if the collection is a set.
|
default boolean isList()
Test if the collection is a list.
isList in interface IsCollectionStrategy<S extends SortedSet<T>,T extends Comparable<T>>isList in interface IsSetStrategy<S extends SortedSet<T>,T extends Comparable<T>>default boolean isSet()
Test if the collection is a set.
isSet in interface IsCollectionStrategy<S extends SortedSet<T>,T extends Comparable<T>>isSet in interface IsSetStrategy<S extends SortedSet<T>,T extends Comparable<T>>default boolean isQueue()
Test if the collection is a queue.
isQueue in interface IsCollectionStrategy<S extends SortedSet<T>,T extends Comparable<T>>isQueue in interface IsSetStrategy<S extends SortedSet<T>,T extends Comparable<T>>S get(Collection<T> collection)
Returns a new collection for the given collection.
get in interface IsCollectionStrategy<S extends SortedSet<T>,T extends Comparable<T>>get in interface IsSetStrategy<S extends SortedSet<T>,T extends Comparable<T>>collection - input collectionS get(Collection<T> collection, Comparator<T> comparator)
Returns a new collection for the given collection.
collection - input collectioncomparator - comparator for objectsS get()
Returns a new collection of requested type.
get in interface IsCollectionStrategy<S extends SortedSet<T>,T extends Comparable<T>>get in interface IsSetStrategy<S extends SortedSet<T>,T extends Comparable<T>>S get(Comparator<T> comparator)
Returns a new collection of requested type.
comparator - comparator for objectsCopyright © 2016–2017. All rights reserved.