public interface IsCollectionStrategy<S extends Collection<T>,T> extends CategoryIs
Base for collection 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.
|
boolean |
isList()
Test if the collection is a list.
|
boolean |
isQueue()
Test if the collection is a queue.
|
boolean |
isSet()
Test if the collection is a set.
|
boolean isList()
Test if the collection is a list.
boolean isSet()
Test if the collection is a set.
boolean isQueue()
Test if the collection is a queue.
S get(Collection<T> collection)
Returns a new collection for the given collection.
collection - input collectionS get()
Returns a new collection of requested type.
Copyright © 2016–2017. All rights reserved.