@Test public void test500m() { Distance upto = DefaultDistance.of(500, DistanceUnit.METERS); assertEquals(Lists.newArrayList(DefaultDistance.of(400, DistanceUnit.METERS)), Lists.newArrayList(Distances .distanceIterator(upto))); }
public static Iterable<Distance> distanceIterator(Distance upto) { return filter(distances, atMost(upto)); }
Distances { public static Iterable<Distance> distanceIterator(Distance upto) { return filter(distances, atMost(upto)); } }
Distances { public static Iterable<Distance> distanceIterator(Distance upto) { return filter(distances, atMost(upto)); } private  Distances(); }
Distances { public static Iterable<Distance> distanceIterator(Distance upto) { return filter(distances, atMost(upto)); } private  Distances(); static Iterable<Distance> getDefaultDistances(); static Iterable<Distance> distanceIterator(Distance upto); static Distance abs(Distance distance); static Distance reverse(Distance distance); }
Distances { public static Iterable<Distance> distanceIterator(Distance upto) { return filter(distances, atMost(upto)); } private  Distances(); static Iterable<Distance> getDefaultDistances(); static Iterable<Distance> distanceIterator(Distance upto); static Distance abs(Distance distance); static Distance reverse(Distance distance);  }