T
- it can be parameterized. To be used mainly with Collection
or Institution
public class Match<T extends EntityMatched> extends Object
LookupResult
to express how good an entity matches. It also adds some remarks
to help understand how the match was done.Modifier and Type | Class and Description |
---|---|
static class |
Match.MatchType |
static class |
Match.Reason |
static class |
Match.Status |
Modifier and Type | Field and Description |
---|---|
static Comparator<Match.MatchType> |
MATCH_TYPE_COMPARATOR |
Constructor and Description |
---|
Match() |
public static final Comparator<Match.MatchType> MATCH_TYPE_COMPARATOR
public Match()
public static <T extends EntityMatched> Match<T> exact(T entity, Match.Reason... reasons)
public static <T extends EntityMatched> Match<T> exact(T entity, Set<Match.Reason> reasons)
public static <T extends EntityMatched> Match<T> fuzzy(T entity, Match.Reason... reasons)
public static <T extends EntityMatched> Match<T> fuzzy(T entity, Set<Match.Reason> reasons)
public static <T extends EntityMatched> Match<T> none()
public static <T extends EntityMatched> Match<T> none(Match.Status status)
public static <T extends EntityMatched> Match<T> explicitMapping(T entity, Match.Reason... reasons)
public static <T extends EntityMatched> Match<T> explicitMapping(T entity, Set<Match.Reason> reasons)
public Match.MatchType getMatchType()
public void setMatchType(Match.MatchType matchType)
public Match.Status getStatus()
public void setStatus(Match.Status status)
public Set<Match.Reason> getReasons()
public void setReasons(Set<Match.Reason> reasons)
public Match<T> addReason(Match.Reason reason)
public T getEntityMatched()
public void setEntityMatched(T entityMatched)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.