|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.sort.v0_6.ChangeAsEntityComparator
public class ChangeAsEntityComparator
Allows an entity comparator to be used for making change comparisons. It extracts the two entities from the changes and compares them using the underlying entity comparator.
Constructor Summary | |
---|---|
ChangeAsEntityComparator(java.util.Comparator<EntityContainer> entityComparator)
Creates a new instance. |
Method Summary | |
---|---|
int |
compare(ChangeContainer o1,
ChangeContainer o2)
|
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 ChangeAsEntityComparator(java.util.Comparator<EntityContainer> entityComparator)
entityComparator
- The entity comparator to use for comparisons.Method Detail |
---|
public int compare(ChangeContainer o1, ChangeContainer o2)
compare
in interface java.util.Comparator<ChangeContainer>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |