Suppliers
Library of static available Supplier<T> implementations, that cover the typical use cases.
Available Suppliers
ChannelExtractors
-
booleanChannel(String name) : extracts Boolean channel values from the MRecord
-
doubleChannel(String name) : extracts Double channel values from the MRecord
-
longChannel(String name) : extracts Long channel values from the MRecord
-
dateChannel(String name) : extracts Date channel values from the MRecord
-
stringChannel(String name) : extracts String channel values from the MRecord
-
channel(String name) : extracts a value from the MRecord where the type has not be given (and the inferred type is used)
BooleanOperators
-
and(Supplier<Boolean> s1, Supplier<Boolean> s2) : logical and operation on both supplied values
-
or(Supplier<Boolean> s1, Supplier<Boolean> s2) : logical or operation on both supplied values
-
not(Supplier<Boolean> supplier) : logical inverse of the supplied value
StringOperators
-
equal(String expected, Supplier<String> supplier) : compares the supplied value with the expected String value. Returns a Supplier<Boolean>.
-
equal(Supplier<String> s1, Supplier<String> s2) : compares both supplied values. Returns a Supplier<Boolean>.
-
match(String regex, Supplier<String> supplier) : compares supplied values against a regex value for matching. Returns a Supplier<Boolean>.
-
contains(String string, Supplier<String> supplier) : Checks if the String value of the supplier contains the given string value. Returns a Supplier<Boolean>.
-
length(Supplier<String> supplier) : determines the length of the supplied String value. Returns a Supplier<Long>.
Comparators
-
equals(T value, Supplier<T>) : checks whether value and supplied value are equal.
-
equals(Supplier<T> s1, Supplier<T> s2) : checks the two supplied values for equality.
-
compare(Supplier<T> s1, Supplier<T> s2) : determines a difference value for the two supplied values. If the values are equal the result is 0, if value of s1 is bigger, than the resulting number is >1, if value of s2 is bigger, than the resulting value is negative.
-
compare(T value, Supplier<T> supplier) : determines a difference value for the value and the supplied value. If the values are equal the result is 0, if value of s1 is bigger, than the resulting number is >1, if value of s2 is bigger, than the resulting value is negative.