S
- the "self" type of this assertion class. Please read "Emulating
'self types' using Java Generics to simplify fluent API implementation" for more details.T
- the type of elements of the "actual" value.public interface IndexedObjectEnumerableAssert<S extends IndexedObjectEnumerableAssert<S,T>,T> extends ObjectEnumerableAssert<S,T>
Modifier and Type | Method and Description |
---|---|
S |
contains(T value,
Index index)
Verifies that the actual group contains the given object at the given index.
|
S |
doesNotContain(T value,
Index index)
Verifies that the actual group does not contain the given object at the given index.
|
are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsExactlyElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotHaveDuplicates, doNotHave, endsWith, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasSameElementsAs, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, isSubsetOf, startsWith
hasSameSizeAs, hasSameSizeAs, hasSize, isEmpty, isNotEmpty, isNullOrEmpty, usingDefaultElementComparator, usingElementComparator
S contains(T value, Index index)
value
- the object to look for.index
- the index where the object should be stored in the actual group.AssertionError
- if the actual group is null
or empty.NullPointerException
- if the given Index
is null
.IndexOutOfBoundsException
- if the value of the given Index
is equal to or greater than the size of the actual
group.AssertionError
- if the actual group does not contain the given object at the given index.S doesNotContain(T value, Index index)
value
- the object to look for.index
- the index where the object should be stored in the actual group.AssertionError
- if the actual group is null
.NullPointerException
- if the given Index
is null
.AssertionError
- if the actual group contains the given object at the given index.Copyright © 2013-2015 AssertJ. All Rights Reserved.