messif.objects.util
Interface DistanceRanked

All Known Implementing Classes:
DistanceRankedObject, RankedAbstractMetaObject, RankedAbstractObject

public interface DistanceRanked

Interface for marking objects that can be ranked according to distance.

See Also:
RankingQueryOperation

Field Summary
static java.util.Comparator<DistanceRanked> comparator
          Default comparator that can be used on DistanceRanked objects.
 
Method Summary
 float getDistance()
          Returns the ranking distance.
 

Field Detail

comparator

static final java.util.Comparator<DistanceRanked> comparator
Default comparator that can be used on DistanceRanked objects. This comparator compares the objects based on their distance rank.

Method Detail

getDistance

float getDistance()
Returns the ranking distance.

Returns:
the ranking distance