S - the type of the non-SPI interface extending this interfaceE - the type of element in the collectionpublic interface CollectionRequirementsSpi<S extends CollectionRequirementsSpi<S,E>,E> extends ObjectRequirementsSpi<S,Collection<E>>
Collection parameter.
| Modifier and Type | Method and Description |
|---|---|
S |
contains(E element)
Ensures that the parameter contains an element.
|
S |
contains(E element,
String name)
Ensures that the parameter contains an element.
|
S |
containsAll(Collection<E> elements)
Ensures that the parameter contains all of multiple elements.
|
S |
containsAll(Collection<E> elements,
String name)
Ensures that the parameter contains all of multiple elements.
|
S |
containsAny(Collection<E> elements)
Ensures that the parameter contains any of multiple elements.
|
S |
containsAny(Collection<E> elements,
String name)
Ensures that the parameter contains any of multiple elements.
|
S |
containsExactly(Collection<E> elements)
Ensures that the parameter contains exactly the specified elements; nothing less, nothing more.
|
S |
containsExactly(Collection<E> elements,
String name)
Ensures that the parameter contains exactly the specified elements; nothing less, nothing more.
|
S |
doesNotContain(E element)
Ensures that the parameter does not contain an element.
|
S |
doesNotContain(E element,
String name)
Ensures that the parameter does not contain an element.
|
S |
doesNotContainAll(Collection<E> elements)
Ensures that the parameter does not contain all of multiple elements.
|
S |
doesNotContainAll(Collection<E> elements,
String name)
Ensures that the parameter does not contain all of multiple elements.
|
S |
doesNotContainAny(Collection<E> elements)
Ensures that the parameter does not contain any of multiple elements.
|
S |
doesNotContainAny(Collection<E> elements,
String name)
Ensures that the parameter does not contain any of multiple elements.
|
S |
doesNotContainDuplicates()
Ensures that the parameter does not contain any duplicate elements.
|
S |
isEmpty()
Ensures that the parameter is empty.
|
S |
isNotEmpty()
Ensures that the parameter is not empty.
|
CollectionSizeRequirements |
size() |
isEqualTo, isEqualTo, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotNull, isNull, withContext, withExceptionS isEmpty() throws IllegalArgumentException
IllegalArgumentException - if parameter is not emptyS isNotEmpty() throws IllegalArgumentException
IllegalArgumentException - if parameter is emptyS contains(E element) throws IllegalArgumentException
element - the element that must existIllegalArgumentException - if the collection does not contain elementS contains(E element, String name) throws NullPointerException, IllegalArgumentException
element - the element that must existname - the name of the elementNullPointerException - if name is nullIllegalArgumentException - if the collection does not contain element; if
name is emptyS containsExactly(Collection<E> elements) throws NullPointerException, IllegalArgumentException
elements - the elements that must existNullPointerException - if elements is nullIllegalArgumentException - if the collection is missing any elements in elements;
if the collection contains elements not found in
elementsS containsExactly(Collection<E> elements, String name) throws NullPointerException, IllegalArgumentException
elements - the elements that must existname - the name of the elementsNullPointerException - if elements or name are nullIllegalArgumentException - if the collection is missing any elements in elements;
if the collection contains elements not found in
elements; if name is emptyS containsAny(Collection<E> elements) throws NullPointerException, IllegalArgumentException
elements - the elements that must existNullPointerException - if elements is nullIllegalArgumentException - if the collection does not contain any of elementsS containsAny(Collection<E> elements, String name) throws NullPointerException, IllegalArgumentException
elements - the elements that must existname - the name of the elementsNullPointerException - if elements or name are nullIllegalArgumentException - if the collection does not contain any of elements; if
name is emptyS containsAll(Collection<E> elements) throws NullPointerException, IllegalArgumentException
elements - the elements that must existNullPointerException - if elements is nullIllegalArgumentException - if the collection does not contain all of elementsS containsAll(Collection<E> elements, String name) throws NullPointerException, IllegalArgumentException
elements - the elements that must existname - the name of the elementsNullPointerException - if elements or name are nullIllegalArgumentException - if the collection does not contain all of elements; if
name is emptyS doesNotContain(E element) throws IllegalArgumentException
element - the element that must not existIllegalArgumentException - if the collection contains elementS doesNotContain(E element, String name) throws NullPointerException, IllegalArgumentException
element - the element that must not existname - the name of the elementNullPointerException - if name is nullIllegalArgumentException - if the collection contains element; if name is
emptyS doesNotContainAny(Collection<E> elements) throws NullPointerException, IllegalArgumentException
elements - the elements that must not existNullPointerException - if elements is nullIllegalArgumentException - if the collection contains any of elementsS doesNotContainAny(Collection<E> elements, String name) throws NullPointerException, IllegalArgumentException
elements - the elements that must not existname - the name of the elementsNullPointerException - if elements or name are nullIllegalArgumentException - if the collection contains any of elements; if
name is emptyS doesNotContainAll(Collection<E> elements) throws NullPointerException, IllegalArgumentException
elements - the elements that must not existNullPointerException - if elements is nullIllegalArgumentException - if the collection contains all of elementsS doesNotContainAll(Collection<E> elements, String name) throws NullPointerException, IllegalArgumentException
elements - the elements that must not existname - the name of the elementsNullPointerException - if elements or name are nullIllegalArgumentException - if the collection contains all of elements; if
name is emptyS doesNotContainDuplicates() throws IllegalArgumentException
IllegalArgumentException - if the collection contains any duplicate elementsCollectionSizeRequirements size()
Copyright © 2016. All rights reserved.