IntIndex implements Index { public Selection lessThan(int value) { Selection selection = new BitmapBackedSelection(); Int2ObjectSortedMap<IntArrayList> head = index.headMap(value); for (IntArrayList keys : head.values()) { addAllToSelection(keys, selection); } return selection; } IntIndex(DateColumn column);  IntIndex(IntColumn column);  IntIndex(TimeColumn column); Selection get(int value); Selection get(LocalTime value); Selection get(LocalDate value); Selection atLeast(int value); Selection atLeast(LocalTime value); Selection atLeast(LocalDate value); Selection greaterThan(int value); Selection greaterThan(LocalTime value); Selection greaterThan(LocalDate value); Selection atMost(int value); Selection atMost(LocalTime value); Selection atMost(LocalDate value); Selection lessThan(int value); Selection lessThan(LocalTime value); Selection lessThan(LocalDate value);  }
@Test public void testLT() { Selection fromCol = table.numberColumn("approval").eval(NumberPredicates.isLessThan(71)); Selection fromIdx = index.lessThan(71); assertEquals(fromCol, fromIdx); }
@Test public void testLT1() { LocalDate date = LocalDate.of(2002, 4, 1); int value = PackedLocalDate.pack(date); Selection fromCol = table.dateColumn("date").eval(DateAndTimePredicates.isLessThan, value); Selection fromIdx = dateIndex.lessThan(value); assertEquals(fromCol, fromIdx); }