|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCollectionUtils.SortTokensByDistance
public static class CollectionUtils.SortTokensByDistance
A Comparator
that sorts SectorEntityToken
s by distance from a Vector2f
.
Constructor Summary | |
---|---|
CollectionUtils.SortTokensByDistance(Vector2f location)
|
Method Summary | |
---|---|
int |
compare(SectorEntityToken o1,
SectorEntityToken o2)
Compares the distances of two SectorEntityToken s from a central location. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Comparator |
---|
equals |
Constructor Detail |
---|
public CollectionUtils.SortTokensByDistance(Vector2f location)
location
- The central location to judge distance from.Method Detail |
---|
public int compare(SectorEntityToken o1, SectorEntityToken o2)
SectorEntityToken
s from a central location.
compare
in interface Comparator<SectorEntityToken>
o1
- The first SectorEntityToken
.o2
- The second SectorEntityToken
.
o1
and o2
from location
.
|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |