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