Class Match<T extends EntityMatched>
java.lang.Object
org.gbif.api.model.collections.lookup.Match<T>
- Type Parameters:
T
- it can be parameterized. To be used mainly withCollection
orInstitution
Used in the
LookupResult
to express how good an entity matches. It also adds some remarks
to help understand how the match was done.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReason
(Match.Reason reason) boolean
static <T extends EntityMatched>
Match<T>exact
(T entity, Set<Match.Reason> reasons) static <T extends EntityMatched>
Match<T>exact
(T entity, Match.Reason... reasons) static <T extends EntityMatched>
Match<T>explicitMapping
(T entity, Set<Match.Reason> reasons) static <T extends EntityMatched>
Match<T>explicitMapping
(T entity, Match.Reason... reasons) static <T extends EntityMatched>
Match<T>fuzzy
(T entity, Set<Match.Reason> reasons) static <T extends EntityMatched>
Match<T>fuzzy
(T entity, Match.Reason... reasons) int
hashCode()
static <T extends EntityMatched>
Match<T>none()
static <T extends EntityMatched>
Match<T>none
(Match.Status status) void
setEntityMatched
(T entityMatched) void
setMatchType
(Match.MatchType matchType) void
setReasons
(Set<Match.Reason> reasons) void
setStatus
(Match.Status status) toString()
-
Field Details
-
MATCH_TYPE_COMPARATOR
-
-
Constructor Details
-
Match
public Match()
-
-
Method Details
-
exact
-
exact
-
fuzzy
-
fuzzy
-
none
-
none
-
explicitMapping
-
explicitMapping
public static <T extends EntityMatched> Match<T> explicitMapping(T entity, Set<Match.Reason> reasons) -
getMatchType
-
setMatchType
-
getStatus
-
setStatus
-
getReasons
-
setReasons
-
addReason
-
getEntityMatched
-
setEntityMatched
-
equals
-
hashCode
-
toString
-