|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.usgs.earthquake.event.JsonEventInfoComparator
public class JsonEventInfoComparator
Provides an ordering for events, based on "euclidean" distance from a reference event.
Constructor Summary | |
---|---|
JsonEventInfoComparator(EventSanityCheck sanityRules,
EventInfo referenceEvent)
Construct a new EventInfoComparator. |
Method Summary | |
---|---|
int |
compare(JsonEventInfo event1,
JsonEventInfo event2)
Compare two events against the reference event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public JsonEventInfoComparator(EventSanityCheck sanityRules, EventInfo referenceEvent)
sanityRules
- determines "euclidean" distance.referenceEvent
- main event other events are compared agains.Method Detail |
---|
public int compare(JsonEventInfo event1, JsonEventInfo event2)
compare
in interface java.util.Comparator<JsonEventInfo>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |