Interface CNumberWaiter<N extends java.lang.Number & java.lang.Comparable<N>>
-
- All Superinterfaces:
CBaseState<N>
,CBaseWaiter<N>
,CObjectWaiter<N>
,java.io.Serializable
- All Known Implementing Classes:
CNumberExtension
public interface CNumberWaiter<N extends java.lang.Number & java.lang.Comparable<N>> extends CObjectWaiter<N>
CNumberWaiter is an interface for Number waiter related methods.
-
-
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
waitBetweenExclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (exclusive).default boolean
waitBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (exclusive).default boolean
waitBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is between lower and higher bound values (exclusive).default boolean
waitBetweenInclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (Inclusive).default boolean
waitBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (Inclusive).default boolean
waitBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is between lower and higher bound values (Inclusive).default boolean
waitEqualsP(N expected, N precision)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have the exact same value or their difference is less than precision value.default boolean
waitEqualsP(N expected, N precision, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have the exact same value or their difference is less than precision value.default boolean
waitEqualsP(N expected, N precision, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have the exact same value or their difference is less than precision value.default boolean
waitGreater(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater than expected.default boolean
waitGreater(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater than expected.default boolean
waitGreater(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value greater than expected.default boolean
waitGreaterOrEqual(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater or equal to expected.default boolean
waitGreaterOrEqual(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater or equal to expected.default boolean
waitGreaterOrEqual(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value greater or equal to expected.default boolean
waitLess(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less than expected.default boolean
waitLess(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less than expected.default boolean
waitLess(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value less than expected.default boolean
waitLessOrEqual(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less or equal than expected.default boolean
waitLessOrEqual(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less or equal than expected.default boolean
waitLessOrEqual(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value less or equal than expected.default boolean
waitNotBetweenExclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Exclusive).default boolean
waitNotBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Exclusive).default boolean
waitNotBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is NOT between lower and higher bound values (Exclusive).default boolean
waitNotBetweenInclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Inclusive).default boolean
waitNotBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Inclusive).default boolean
waitNotBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is NOT between lower and higher bound values (Inclusive).default boolean
waitNotEqualsP(N expected, N precision)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have different value greater than precision value.default boolean
waitNotEqualsP(N expected, N precision, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have different value greater than precision value.default boolean
waitNotEqualsP(N expected, N precision, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different value greater than precision value.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CObjectWaiter
_waiter, wait, wait, wait, waitEquals, waitEquals, waitEquals, waitEqualsAny, waitEqualsAny, waitEqualsAny, waitEqualsNone, waitEqualsNone, waitEqualsNone, waitIsNotNull, waitIsNotNull, waitIsNotNull, waitIsNull, waitIsNull, waitIsNull, waitNotEquals, waitNotEquals, waitNotEquals
-
-
-
-
Method Detail
-
waitBetweenExclusive
default boolean waitBetweenExclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (exclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusive- Returns:
- true if wait operation succeed otherwise return false
-
waitBetweenExclusive
default boolean waitBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (exclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitBetweenExclusive
default boolean waitBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is between lower and higher bound values (exclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitBetweenInclusive
default boolean waitBetweenInclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (Inclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusive- Returns:
- true if wait operation succeed otherwise return false
-
waitBetweenInclusive
default boolean waitBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is between lower and higher bound values (Inclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitBetweenInclusive
default boolean waitBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is between lower and higher bound values (Inclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsP
default boolean waitEqualsP(N expected, N precision)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have the exact same value or their difference is less than precision value.Please note that verification consider as passe if both value is null
- Parameters:
expected
- value to compareprecision
- the acceptable precision- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsP
default boolean waitEqualsP(N expected, N precision, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have the exact same value or their difference is less than precision value.Please note that verification consider as passe if both value is null
- Parameters:
expected
- value to compareprecision
- the acceptable precisionwaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitEqualsP
default boolean waitEqualsP(N expected, N precision, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have the exact same value or their difference is less than precision value.Please note that verification consider as passe if both value is null
- Parameters:
expected
- value to compareprecision
- the acceptable precisionwaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitGreater
default boolean waitGreater(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater than expected.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitGreater
default boolean waitGreater(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitGreater
default boolean waitGreater(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value greater than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitGreaterOrEqual
default boolean waitGreaterOrEqual(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater or equal to expected.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitGreaterOrEqual
default boolean waitGreaterOrEqual(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value greater or equal to expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitGreaterOrEqual
default boolean waitGreaterOrEqual(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value greater or equal to expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitLess
default boolean waitLess(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less than expected.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitLess
default boolean waitLess(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitLess
default boolean waitLess(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value less than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitLessOrEqual
default boolean waitLessOrEqual(N expected)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less or equal than expected.- Parameters:
expected
- value to compare- Returns:
- true if wait operation succeed otherwise return false
-
waitLessOrEqual
default boolean waitLessOrEqual(N expected, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual has value less or equal than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitLessOrEqual
default boolean waitLessOrEqual(N expected, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual has value less or equal than expected.- Parameters:
expected
- value to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitNotBetweenExclusive
default boolean waitNotBetweenExclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Exclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusive- Returns:
- true if wait operation succeed otherwise return false
-
waitNotBetweenExclusive
default boolean waitNotBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Exclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitNotBetweenExclusive
default boolean waitNotBetweenExclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is NOT between lower and higher bound values (Exclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitNotBetweenInclusive
default boolean waitNotBetweenInclusive(N lowerBound, N higherBound)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Inclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusive- Returns:
- true if wait operation succeed otherwise return false
-
waitNotBetweenInclusive
default boolean waitNotBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual value is NOT between lower and higher bound values (Inclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitNotBetweenInclusive
default boolean waitNotBetweenInclusive(N lowerBound, N higherBound, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual value is NOT between lower and higher bound values (Inclusive).- Parameters:
lowerBound
- lower bound inclusivehigherBound
- higher bound inclusivewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsP
default boolean waitNotEqualsP(N expected, N precision)
Wait forCConfigs.TypeExtension.getDefaultWaitInSeconds()
number of milliseconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have different value greater than precision value.Please note that verification consider as passe if one value is null
- Parameters:
expected
- value to compareprecision
- the acceptable precision- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsP
default boolean waitNotEqualsP(N expected, N precision, int waitInSeconds)
Wait for defined number of seconds withCConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected have different value greater than precision value.Please note that verification consider as passe if one value is null
- Parameters:
expected
- value to compareprecision
- the acceptable precisionwaitInSeconds
- maximum wait time- Returns:
- true if wait operation succeed otherwise return false
-
waitNotEqualsP
default boolean waitNotEqualsP(N expected, N precision, int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the actual and expected have different value greater than precision value.Please note that verification consider as passe if one value is null
- Parameters:
expected
- value to compareprecision
- the acceptable precisionwaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
-