Class EndpointPriorityComparator

java.lang.Object
org.gbif.api.util.comparators.EndpointPriorityComparator
All Implemented Interfaces:
Serializable, Comparator<Endpoint>

Compares two Endpoints.

It does so by using a priority list of Endpoint Types. This Comparator will throw a ClassCastException exception if a non supported EndpointType is passed in. It also does not support null values.

The priority list is as follows (most to least important):
  1. CamtrapDP
  2. DwC-A
  3. TAPIR
  4. BioCASe
  5. DiGIR
  6. DiGIR (Manis)
  7. EML
See Also: