- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 53 for SortedSet (0.32 sec)
-
android/guava/src/com/google/common/collect/MultimapBuilder.java
private static final class TreeSetSupplier<V extends @Nullable Object> implements Supplier<SortedSet<V>>, Serializable { private final Comparator<? super V> comparator; TreeSetSupplier(Comparator<? super V> comparator) { this.comparator = checkNotNull(comparator); } @Override public SortedSet<V> get() { return new TreeSet<>(comparator); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 17.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
try { Iterables.getLast(list); fail(); } catch (NoSuchElementException e) { } } public void testGetLast_sortedSet() { SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); assertEquals("c", Iterables.getLast(sortedSet)); } public void testGetLast_withDefault_singleton() { Iterable<String> iterable = Collections.singletonList("foo");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 47.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Range.java
* @since 14.0 */ public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) { checkNotNull(values); if (values instanceof SortedSet) { SortedSet<C> set = (SortedSet<C>) values; Comparator<?> comparator = set.comparator(); if (Ordering.<C>natural().equals(comparator) || comparator == null) { return closed(set.first(), set.last()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 27.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsCollectionTest.java
} }; private static class NonNavigableSortedSet extends ForwardingSortedSet<String> { private final SortedSet<String> delegate = Sets.newTreeSet(Ordering.natural()); @Override protected SortedSet<String> delegate() { return delegate; } } private static class NonNavigableSortedMap extends ForwardingSortedMap<String, String> {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import java.util.NavigableMap; import java.util.NavigableSet; import java.util.Set; import java.util.SortedMap; import java.util.SortedSet; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit tests for {@code TreeMultimap} with natural ordering. * * @author Jared Levy */
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 22.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import java.util.NavigableMap; import java.util.NavigableSet; import java.util.Set; import java.util.SortedMap; import java.util.SortedSet; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit tests for {@code TreeMultimap} with natural ordering. * * @author Jared Levy */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 22.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java
} }; private static class NonNavigableSortedSet extends ForwardingSortedSet<String> { private final SortedSet<String> delegate = Sets.newTreeSet(Ordering.natural()); @Override protected SortedSet<String> delegate() { return delegate; } } private static class NonNavigableSortedMap extends ForwardingSortedMap<String, String> {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 32.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.NavigableSet; import java.util.NoSuchElementException; import java.util.Set; import java.util.SortedSet; import junit.framework.TestCase; /** * Class that contains nested abstract tests for filtered collection views, along with their * implementation helpers. * * @author Louis Wasserman */ /*
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
((RegularImmutableSet<Integer>) set).table.length); } public void testCopyOf_copiesImmutableSortedSet() { ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); assertNotSame(sortedSet, copy); } // TODO(b/172823566): Use mainline testToImmutableSet once CollectorTester is usable to java7. public void testToImmutableSet_java7() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/FluentIterable.java
* to know they are SortedSets and probably would not call this method. */ if (iterable instanceof SortedSet) { SortedSet<E> sortedSet = (SortedSet<E>) iterable; return Optional.of(sortedSet.last()); } while (true) { E current = iterator.next(); if (!iterator.hasNext()) { return Optional.of(current); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 35.3K bytes - Viewed (0)