Package com.ibm.icu.dev.util
Class CollectionUtilities.InverseMatcher<T>
- java.lang.Object
-
- com.ibm.icu.dev.util.CollectionUtilities.InverseMatcher<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
CollectionUtilities.ObjectMatcher<T>
- Enclosing class:
- CollectionUtilities
public static class CollectionUtilities.InverseMatcher<T> extends java.lang.Object implements CollectionUtilities.ObjectMatcher<T>
Reverse a match
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CollectionUtilities.ObjectMatcher<T>
other
-
Constructor Summary
Constructors Constructor Description InverseMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(T value)
Must handle null, never throw exceptionCollectionUtilities.ObjectMatcher
set(CollectionUtilities.ObjectMatcher toInverse)
-
-
-
Field Detail
-
other
CollectionUtilities.ObjectMatcher<T> other
-
-
Method Detail
-
set
public CollectionUtilities.ObjectMatcher set(CollectionUtilities.ObjectMatcher toInverse)
- Parameters:
toInverse
-- Returns:
-
matches
public boolean matches(T value)
Description copied from interface:CollectionUtilities.ObjectMatcher
Must handle null, never throw exception- Specified by:
matches
in interfaceCollectionUtilities.ObjectMatcher<T>
- Returns:
-
-