- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for SortedMap (0.11 sec)
-
guava/src/com/google/common/collect/ImmutableSortedMap.java
Map<? extends K, ? extends V> map, Comparator<? super K> comparator) { boolean sameComparator = false; if (map instanceof SortedMap) { SortedMap<?, ?> sortedMap = (SortedMap<?, ?>) map; Comparator<?> comparator2 = sortedMap.comparator(); sameComparator = (comparator2 == null) ? comparator == NATURAL_ORDER : comparator.equals(comparator2); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
import com.google.common.annotations.GwtCompatible; import java.util.Iterator; import java.util.Map.Entry; import java.util.SortedMap; /** * Tests representing the contract of {@link SortedMap}. Concrete subclasses of this base class test * conformance of concrete {@link SortedMap} subclasses to that contract. * * @author Jared Levy */ // TODO: Use this class to test classes besides ImmutableSortedMap.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsSortedTransformValuesTest.java
import com.google.common.base.Functions; import java.util.SortedMap; /** * Tests for {@link Maps#transformValues(SortedMap, Function)}. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault public class MapsSortedTransformValuesTest extends AbstractMapsTransformValuesTest { @Override protected SortedMap<String, String> makeEmptyMap() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 1.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeBasedTable.java
* returns a {@link SortedMap}, instead of the {@link Map} specified in the {@link Table} * interface. * * @since 10.0 (<a href="https://github.com/google/guava/wiki/Compatibility" >mostly * source-compatible</a> since 7.0) */ @Override public SortedMap<C, V> row(R rowKey) { return new TreeRow(rowKey); } private class TreeRow extends Row implements SortedMap<C, V> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 11.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedMap.java
extends ForwardingMap<K, V> implements SortedMap<K, V> { // TODO(lowasser): identify places where thread safety is actually lost /** Constructor for use by subclasses. */ protected ForwardingSortedMap() {} @Override protected abstract SortedMap<K, V> delegate(); @Override @CheckForNull public Comparator<? super K> comparator() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java
@Override protected SortedMap<String, Integer> makeEmptyMap() { return new SimpleForwardingSortedMap<>( new TreeMap<String, Integer>(Ordering.<String>natural().nullsFirst())); } @Override protected SortedMap<String, Integer> makePopulatedMap() { final SortedMap<String, Integer> sortedMap = makeEmptyMap(); sortedMap.put("one", 1); sortedMap.put("two", 2); sortedMap.put("three", 3);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Mar 07 18:34:03 UTC 2024 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractNavigableMap.java
@Override public SortedMap<K, V> subMap(@ParametricNullness K fromKey, @ParametricNullness K toKey) { return subMap(fromKey, true, toKey, false); } @Override public SortedMap<K, V> headMap(@ParametricNullness K toKey) { return headMap(toKey, false); } @Override public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jun 15 18:11:44 UTC 2023 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
} @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { return delegate().subMap(fromKey, true, toKey, false); } @Override public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive) { assertTrue(Thread.holdsLock(mutex)); return delegate().tailMap(fromKey, inclusive); } @Override public SortedMap<K, V> tailMap(K fromKey) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 12.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
SortedMapDifferenceImpl( SortedMap<K, V> onlyOnLeft, SortedMap<K, V> onlyOnRight, SortedMap<K, V> onBoth, SortedMap<K, ValueDifference<V>> differences) { super(onlyOnLeft, onlyOnRight, onBoth, differences); } @Override public SortedMap<K, ValueDifference<V>> entriesDiffering() { return (SortedMap<K, ValueDifference<V>>) super.entriesDiffering(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 161.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
SortedMapDifferenceImpl( SortedMap<K, V> onlyOnLeft, SortedMap<K, V> onlyOnRight, SortedMap<K, V> onBoth, SortedMap<K, ValueDifference<V>> differences) { super(onlyOnLeft, onlyOnRight, onBoth, differences); } @Override public SortedMap<K, ValueDifference<V>> entriesDiffering() { return (SortedMap<K, ValueDifference<V>>) super.entriesDiffering(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 167.4K bytes - Viewed (0)