Interface CCollectionState<E>
-
- All Superinterfaces:
CBaseState<java.lang.Iterable<E>>
,CIterableState<E>
,CObjectState<java.lang.Iterable<E>>
,java.io.Serializable
- All Known Subinterfaces:
CCollection<E>
,CDynamicCollectionExtension<E>
,CStaticCollectionExtension<E>
- All Known Implementing Classes:
CConfigInfoCollection
,CList
,CSet
public interface CCollectionState<E> extends CIterableState<E>, CObjectState<java.lang.Iterable<E>>
CCollectionState is an interface for Collection state related methods.
We need this interface to have possibility of adding state to any exists objects with the minimum change in the code.
-
-
Field Summary
-
Fields inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
serialVersionUID
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
sizeEquals(int expected)
Verify the map size is equal to expected value.default boolean
sizeIsGreaterThan(int expected)
Check if actual has value greater than expected.default boolean
sizeIsLessThan(int expected)
Check if actual has value less than expected.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CIterableState
contains, containsAll, containsAny, containsNone, containsNone, emptyOrContains, emptyOrNotContains, has, hasNot, isEmpty, isEqual, isEqual, isNotEmpty, notContains, notContainsAll, notContainsAll
-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CObjectState
equalsAny, equalsAny, equalsNone, equalsNone, isNotNull, isNull, notEquals, test
-
-
-
-
Method Detail
-
sizeEquals
default boolean sizeEquals(int expected)
Verify the map size is equal to expected value.- Parameters:
expected
- value to compare- Returns:
- execution boolean result
-
sizeIsGreaterThan
default boolean sizeIsGreaterThan(int expected)
Check if actual has value greater than expected.- Parameters:
expected
- value to compare- Returns:
- execution boolean result
-
sizeIsLessThan
default boolean sizeIsLessThan(int expected)
Check if actual has value less than expected.- Parameters:
expected
- value to compare- Returns:
- execution boolean result
-
-