Enum Constant and Description |
---|
CACHE |
EQUAL |
EQUAL_OR_ONE_NULL |
EQUAL_OR_SECOND_NULL |
EQUAL_REQUIRED |
IGNORE |
MATCH |
MATCH_OR_ONE_NULL |
MATCH_OR_SECOND_NULL |
MATCH_REQUIRED |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsSecondNull(java.lang.Object first) |
boolean |
isEqual()
Returns true, if this match mode is of type EQUALXXX
|
boolean |
isIgnore(java.lang.Object first)
Returns true is this match mode can be ignored for retrieving
matching objects
|
boolean |
isMatch()
Returns true, if this match mode is of type MATCHXXX
|
boolean |
isRequired()
Returns true if a non-null value is required, independent from the first value
|
boolean |
isXOrOneNull()
Returns true, if this match mode is of type XXX_OR_ONE_NULL
|
MatchResult |
matches(java.lang.Object obj1,
java.lang.Object obj2,
IMatchStrategy matchStrategy,
java.lang.String fieldName,
boolean failAll) |
boolean |
requiresSecondNull(java.lang.Object first)
Returns true if a null value is required for retrieveing
matching objects
|
boolean |
requiresSecondValue(java.lang.Object first)
Returns true if a non-null value is required for finding
matching objects
|
static MatchMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchMode EQUAL_REQUIRED
public static final MatchMode EQUAL
public static final MatchMode EQUAL_OR_ONE_NULL
public static final MatchMode EQUAL_OR_SECOND_NULL
public static final MatchMode IGNORE
public static final MatchMode MATCH_REQUIRED
public static final MatchMode MATCH_OR_ONE_NULL
public static final MatchMode MATCH_OR_SECOND_NULL
public static final MatchMode MATCH
public static final MatchMode CACHE
public static MatchMode[] values()
for (MatchMode c : MatchMode.values()) System.out.println(c);
public static MatchMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic MatchResult matches(java.lang.Object obj1, java.lang.Object obj2, IMatchStrategy matchStrategy, java.lang.String fieldName, boolean failAll) throws MatchException
MatchException
public boolean allowsSecondNull(java.lang.Object first)
public boolean isIgnore(java.lang.Object first)
first
- public boolean requiresSecondValue(java.lang.Object first)
first
- public boolean requiresSecondNull(java.lang.Object first) throws MatchException
first
- MatchException
- if first is null and matching a non-null value is requiredpublic boolean isRequired()
public boolean isMatch()
public boolean isEqual()
public boolean isXOrOneNull()
Copyright © 2007-2020 EDIT. All Rights Reserved.