Class DecimalNumberPredicateBuilder

    • Method Detail

      • is

        public static DecimalNumberPredicate is​(double value)
        Parameters:
        value - the exact expected value.
        Returns:
        Predicate to continue adding rules.
      • is

        public static DecimalNumberPredicate is​(Predicate<Double> rule)
        Parameters:
        rule - the custom predicate to test against the Double.
        Returns:
        Predicate to continue adding rules.
      • contains

        public static DecimalNumberPredicate contains​(Integer value,
                                                      Integer... values)
        Checks whether the given Integers are present anywhere in the value.
        Parameters:
        value - the exact value that needs to be present in the toString of the original value.
        values - the optional exact values that needs to be present in the toString of the original value.
        Returns:
        DecimalNumberPredicate to continue adding rules.
      • doesNotContain

        public static DecimalNumberPredicate doesNotContain​(Integer value,
                                                            Integer... values)
        Checks whether the given Integers are not present anywhere in the value.
        Parameters:
        value - the exact value that may not be present in the toString of the original value.
        values - the optional exact values that may not be present in the toString of the original value.
        Returns:
        DecimalNumberPredicate to continue adding rules.
      • test

        public boolean test​(T value)
        Specified by:
        test in interface Predicate<T>
      • where

        public Predicate<T> where​(Predicate<T> rule)
        Specified by:
        where in interface GenericPredicate<T>
        Parameters:
        rule - the custom predicate to test against properties of T.
        Returns:
        ObjectPredicate to continue adding rules.