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.

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean waitBetweenExclusive​(N lowerBound, N higherBound)
      Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual has value greater than expected.
      default boolean waitGreater​(N expected, int waitInSeconds)
      Wait for defined number of seconds with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual has value less than expected.
      default boolean waitLess​(N expected, int waitInSeconds)
      Wait for defined number of seconds with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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 for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.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.
    • Method Detail

      • waitBetweenExclusive

        default boolean waitBetweenExclusive​(N lowerBound,
                                             N higherBound)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is between lower and higher bound values (exclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - 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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is between lower and higher bound values (exclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - higher bound inclusive
        waitInSeconds - 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 inclusive
        higherBound - higher bound inclusive
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitBetweenInclusive

        default boolean waitBetweenInclusive​(N lowerBound,
                                             N higherBound)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is between lower and higher bound values (Inclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - 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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is between lower and higher bound values (Inclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - higher bound inclusive
        waitInSeconds - 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 inclusive
        higherBound - higher bound inclusive
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitEqualsP

        default boolean waitEqualsP​(N expected,
                                    N precision)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 compare
        precision - 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 with CConfigs.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 compare
        precision - the acceptable precision
        waitInSeconds - 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 compare
        precision - the acceptable precision
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitGreater

        default boolean waitGreater​(N expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual has value greater than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - 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 compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitGreaterOrEqual

        default boolean waitGreaterOrEqual​(N expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual has value greater or equal to expected.
        Parameters:
        expected - value to compare
        waitInSeconds - 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 compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitLess

        default boolean waitLess​(N expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual has value less than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - 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 compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitLessOrEqual

        default boolean waitLessOrEqual​(N expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual has value less or equal than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - 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 compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotBetweenExclusive

        default boolean waitNotBetweenExclusive​(N lowerBound,
                                                N higherBound)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is NOT between lower and higher bound values (Exclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - 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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is NOT between lower and higher bound values (Exclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - higher bound inclusive
        waitInSeconds - 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 inclusive
        higherBound - higher bound inclusive
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotBetweenInclusive

        default boolean waitNotBetweenInclusive​(N lowerBound,
                                                N higherBound)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is NOT between lower and higher bound values (Inclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - 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 with CConfigs.TypeExtension.getDefaultWaitIntervalInMilliSeconds() interval till the actual value is NOT between lower and higher bound values (Inclusive).
        Parameters:
        lowerBound - lower bound inclusive
        higherBound - higher bound inclusive
        waitInSeconds - 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 inclusive
        higherBound - higher bound inclusive
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotEqualsP

        default boolean waitNotEqualsP​(N expected,
                                       N precision)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds with CConfigs.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 compare
        precision - 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 with CConfigs.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 compare
        precision - the acceptable precision
        waitInSeconds - 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 compare
        precision - the acceptable precision
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false