@Test public void testLargerBetween() { int aSize = TestData.getScaleCount(); int bSize = (int) (aSize * 1.35); Collection<Integer> a = getCollection(aSize); Collection<Integer> b = getCollection(bSize); Assert.assertEquals(b, TCollections.largerBetween(a, b)); }
public static Collection<?> largerBetween(Collection<?> a, Collection<?> b) { return a.size() == b.size() || b.size() > a.size() ? b : a; }
TCollections { public static Collection<?> largerBetween(Collection<?> a, Collection<?> b) { return a.size() == b.size() || b.size() > a.size() ? b : a; } }
TCollections { public static Collection<?> largerBetween(Collection<?> a, Collection<?> b) { return a.size() == b.size() || b.size() > a.size() ? b : a; } private  TCollections(); }
TCollections { public static Collection<?> largerBetween(Collection<?> a, Collection<?> b) { return a.size() == b.size() || b.size() > a.size() ? b : a; } private  TCollections(); static Collection<?> smallerBetween(Collection<?> a,
            Collection<?> b); static Collection<?> largerBetween(Collection<?> a,
            Collection<?> b); static T getRandomElement(Collection<T> collection); static String toOrderedListString(Iterable<T> collection); }
TCollections { public static Collection<?> largerBetween(Collection<?> a, Collection<?> b) { return a.size() == b.size() || b.size() > a.size() ? b : a; } private  TCollections(); static Collection<?> smallerBetween(Collection<?> a,
            Collection<?> b); static Collection<?> largerBetween(Collection<?> a,
            Collection<?> b); static T getRandomElement(Collection<T> collection); static String toOrderedListString(Iterable<T> collection);  }