Package com.db4o.internal.query
Class SodaQueryComparator
- java.lang.Object
-
- com.db4o.internal.query.SodaQueryComparator
-
- All Implemented Interfaces:
IntComparator
,java.util.Comparator<java.lang.Integer>
public class SodaQueryComparator extends java.lang.Object implements java.util.Comparator<java.lang.Integer>, IntComparator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SodaQueryComparator.Direction
static class
SodaQueryComparator.Ordering
-
Constructor Summary
Constructors Constructor Description SodaQueryComparator(LocalObjectContainer container, ClassMetadata extent, SodaQueryComparator.Ordering... orderings)
SodaQueryComparator(LocalObjectContainer container, java.lang.Class extentType, SodaQueryComparator.Ordering... orderings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(int x, int y)
int
compare(java.lang.Integer x, java.lang.Integer y)
java.util.List<java.lang.Integer>
sort(long[] ids)
-
-
-
Constructor Detail
-
SodaQueryComparator
public SodaQueryComparator(LocalObjectContainer container, java.lang.Class extentType, SodaQueryComparator.Ordering... orderings)
-
SodaQueryComparator
public SodaQueryComparator(LocalObjectContainer container, ClassMetadata extent, SodaQueryComparator.Ordering... orderings)
-
-
Method Detail
-
sort
public java.util.List<java.lang.Integer> sort(long[] ids)
-
compare
public int compare(java.lang.Integer x, java.lang.Integer y)
- Specified by:
compare
in interfacejava.util.Comparator<java.lang.Integer>
-
compare
public int compare(int x, int y)
- Specified by:
compare
in interfaceIntComparator
-
-