@Test public void maxOnlyRange() { Range r = new Range(-1,2); assertEquals("[a, b]", toS(r.apply(array))); assertEquals("[a, b]", toS(r.apply(list))); assertEquals("[a, b]", toS(r.apply(set))); }
public <T> List<T> apply(T[] a) { return apply(Arrays.asList(a)); }
Range { public <T> List<T> apply(T[] a) { return apply(Arrays.asList(a)); } }
Range { public <T> List<T> apply(T[] a) { return apply(Arrays.asList(a)); } Range(int min, int max); }
Range { public <T> List<T> apply(T[] a) { return apply(Arrays.asList(a)); } Range(int min, int max); List<T> apply(T[] a); List<T> apply(List<T> s); Iterable<T> apply(final Collection<T> s); Iterable<T> apply(final Iterable<T> s); }
Range { public <T> List<T> apply(T[] a) { return apply(Arrays.asList(a)); } Range(int min, int max); List<T> apply(T[] a); List<T> apply(List<T> s); Iterable<T> apply(final Collection<T> s); Iterable<T> apply(final Iterable<T> s); final int min; final int max; static final Range ALL; }