@Test public void testFind() { MyRangeFinder myRangeFinder = new MyRangeFinder(); Result<String> result = myRangeFinder.find(new Range(0, 2), "o"); Assertions.assertThat(result.getResult()).hasSize(2); Assertions.assertThat(result.getResult()).containsOnly("john", "doe"); }
@Override public Result<T> find(Range range, C criteria) { long resultSize = computeFullRequestSize(criteria); List<T> list = computeResultList(range, criteria); return new Result<>(list, range.getOffset(), resultSize); }
BaseRangeFinder implements RangeFinder<T, C> { @Override public Result<T> find(Range range, C criteria) { long resultSize = computeFullRequestSize(criteria); List<T> list = computeResultList(range, criteria); return new Result<>(list, range.getOffset(), resultSize); } }
BaseRangeFinder implements RangeFinder<T, C> { @Override public Result<T> find(Range range, C criteria) { long resultSize = computeFullRequestSize(criteria); List<T> list = computeResultList(range, criteria); return new Result<>(list, range.getOffset(), resultSize); }  }
BaseRangeFinder implements RangeFinder<T, C> { @Override public Result<T> find(Range range, C criteria) { long resultSize = computeFullRequestSize(criteria); List<T> list = computeResultList(range, criteria); return new Result<>(list, range.getOffset(), resultSize); }  @Override Result<T> find(Range range, C criteria); }
BaseRangeFinder implements RangeFinder<T, C> { @Override public Result<T> find(Range range, C criteria) { long resultSize = computeFullRequestSize(criteria); List<T> list = computeResultList(range, criteria); return new Result<>(list, range.getOffset(), resultSize); }  @Override Result<T> find(Range range, C criteria);  }