|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use UnaryPredicate | |
---|---|
jaggregate | Jaggregate is a J2SE 5.0-aware collections library that is modeled after the ANSI Smalltalk collection protocols. |
jaggregate.junit.framework | This package contains add-ons to the JUnit testing framework that work well with Jaggregate concepts. |
Uses of UnaryPredicate in jaggregate |
---|
Methods in jaggregate that return UnaryPredicate | ||
---|---|---|
UnaryPredicate<A> |
UnaryPredicate.and(UnaryPredicate<? super A> other)
Answers a predicate that represents the logical conjunction of this predicate and another predicate. |
|
static
|
Comparables.between(E minimum,
E maximum)
Answers a predicate which will answer true if its argument compares
"between" the given minimum and maximum, inclusive. |
|
UnaryPredicate<A2> |
BinaryPredicate.bindFirst(A1 boundArgument)
Answers a predicate of one argument that matches in the same manner as this predicate would if evaluated using a fixed first argument and another argument. |
|
UnaryPredicate<A1> |
BinaryPredicate.bindSecond(A2 boundArgument)
Answers a predicate of one argument that matches in the same manner as this predicate would if evaluated using a fixed second argument and another argument. |
|
static UnaryPredicate<Class<?>> |
Objects.classifies(Object instance)
Answers a predicate which will answer true if its argument is a class in
the hierarchy of the given object's class. |
|
static UnaryPredicate<String> |
Strings.endsWith(String suffix)
Answers a predicate which will answer true if its argument ends with the
given suffix. |
|
static UnaryPredicate<String> |
Strings.equalsIgnoreCase(String comparand)
Answers a predicate which will answer true if its argument is equivalent
to the given comparand, disregarding case. |
|
static UnaryPredicate<Object> |
Objects.equalTo(Object comparand)
Answers a predicate which will answer true if its argument compares
equivalent to the given comparand. |
|
static
|
Comparables.greaterThan(E comparand)
Answers a predicate which will answer true if its argument compares
"greater than" the given comparand. |
|
static
|
Comparables.greaterThanOrEqualTo(E comparand)
Answers a predicate which will answer true if its argument compares
"greater than" or "equal to" the given comparand. |
|
static UnaryPredicate<String> |
Strings.hasSameContentsAs(CharSequence comparand)
Answers a predicate which will answer true if its argument has the same
string contents as the given comparand. |
|
static UnaryPredicate<String> |
Strings.hasSubstring(CharSequence substring)
Answers a predicate which will answer true if the given substring occurs
anywhere within its argument. |
|
static UnaryPredicate<Object> |
Objects.isA(Class<?> comparand)
Answers a predicate which will answer true if its argument is an
instance of the given comparand class. |
|
static UnaryPredicate<String> |
Strings.isPrefixOf(String target)
Answers a predicate which will answer true if its argument is a prefix
of the given target. |
|
static UnaryPredicate<CharSequence> |
Strings.isSubstringOf(String target)
Answers a predicate which will answer true if the given string has the
predicate's argument as a substring. |
|
static UnaryPredicate<String> |
Strings.isSuffixOf(String target)
Answers a predicate which will answer true if its argument is a suffix of
the given string. |
|
static UnaryPredicate<Throwable> |
Throwables.isThrownBy(Class<?> thrower)
Answers a predicate which will answer true if its argument is an exception
which was raised from code in the given class. |
|
static
|
Comparables.lessThan(E comparand)
Answers a predicate which will answer true if its argument compares
"less than" the given comparand. |
|
static
|
Comparables.lessThanOrEqualTo(E comparand)
Answers a predicate which will answer true if its argument compares
"less than" or "equal to" the given comparand. |
|
static UnaryPredicate<CharSequence> |
Strings.matchesPattern(String pattern)
Answers a predicate which will answer true if any part of its argument
matches the given regular expression pattern. |
|
UnaryPredicate<A> |
UnaryPredicate.not()
Answers a predicate that represents the logical inverse of this predicate; wherever this predicate's matches method
would answer true , the inverse answers false ; and vice versa. |
|
static
|
UnaryPredicate.not(UnaryPredicate<T> predicate)
Answers a predicate that represents the logical inverse of the given predicate; wherever the given predicate's matches method
would answer true , the inverse answers false ; and vice versa. |
|
UnaryPredicate<A> |
UnaryPredicate.or(UnaryPredicate<? super A> other)
Answers a predicate that represents the logical disjunction of this predicate and another predicate. |
|
static UnaryPredicate<String> |
Strings.patternMatches(CharSequence target)
Answers a predicate which will answer true if its regular expression
pattern argument matches the given target. |
|
static UnaryPredicate<Object> |
Objects.sameAs(Object comparand)
Answers a predicate which will answer true if its argument refers to the
same object as the given comparand. |
|
static UnaryPredicate<String> |
Strings.startsWith(String prefix)
Answers a predicate which will answer true if its argument starts with
the given prefix. |
|
UnaryPredicate<A> |
UnaryPredicate.xor(UnaryPredicate<? super A> other)
Answers a predicate that represents the logical exclusive disjunction of this predicate and another predicate. |
Methods in jaggregate with parameters of type UnaryPredicate | ||
---|---|---|
UnaryPredicate<A> |
UnaryPredicate.and(UnaryPredicate<? super A> other)
Answers a predicate that represents the logical conjunction of this predicate and another predicate. |
|
static
|
UnaryPredicate.not(UnaryPredicate<T> predicate)
Answers a predicate that represents the logical inverse of the given predicate; wherever the given predicate's matches method
would answer true , the inverse answers false ; and vice versa. |
|
UnaryPredicate<A> |
UnaryPredicate.or(UnaryPredicate<? super A> other)
Answers a predicate that represents the logical disjunction of this predicate and another predicate. |
|
UnaryPredicate<A> |
UnaryPredicate.xor(UnaryPredicate<? super A> other)
Answers a predicate that represents the logical exclusive disjunction of this predicate and another predicate. |
Uses of UnaryPredicate in jaggregate.junit.framework |
---|
Methods in jaggregate.junit.framework with parameters of type UnaryPredicate | ||
---|---|---|
static
|
ObjectAssert.assertThat(T target,
UnaryPredicate<? super T> constraint)
Asserts that a given object satisfies a given constraint. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |