public Selection lessThan(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> head = index.headMap(value); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; } }
public Selection atLeast(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> tail = index.tailMap(value); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection greaterThan(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> tail = index.tailMap((short) (value + 1)); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atMost(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> head = index.headMap((short) (value + 1)); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atLeast(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> tail = index.tailMap(value); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection greaterThan(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> tail = index.tailMap((short) (value + 1)); for (IntArrayList keys : tail.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection atMost(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> head = index.headMap((short) (value + 1)); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; }
public Selection lessThan(short value) { Selection selection = new BitmapBackedSelection(); Short2ObjectSortedMap<IntArrayList> head = index.headMap(value); // we add 1 to get values equal to the arg for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; } }