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 withCollectionorInstitution
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 enumstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReason(Match.Reason reason) booleanstatic <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) inthashCode()static <T extends EntityMatched>
Match<T>none()static <T extends EntityMatched>
Match<T>none(Match.Status status) voidsetEntityMatched(T entityMatched) voidsetMatchType(Match.MatchType matchType) voidsetReasons(Set<Match.Reason> reasons) voidsetStatus(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
-