Searched refs:NavigableMap (Results 1 - 25 of 35) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
H A DSynchronizedNavigableMapTest.java35 import java.util.NavigableMap;
40 * Tests for {@link Maps#synchronizedNavigableMap(NavigableMap)}.
45 @Override protected <K, V> NavigableMap<K, V> create() {
47 NavigableMap<K, V> innermost = new SafeTreeMap<K, V>(
50 NavigableMap<K, V> outer = Synchronized.navigableMap(inner, mutex);
97 implements NavigableMap<K, V> {
99 public TestMap(NavigableMap<K, V> delegate, Object mutex) {
103 @Override protected NavigableMap<K, V> delegate() {
104 return (NavigableMap<K, V>) super.delegate();
122 @Override public NavigableMap<
[all...]
H A DForwardingNavigableMapTest.java35 import java.util.NavigableMap;
49 private final NavigableMap<K, V> backingMap;
51 StandardImplForwardingNavigableMap(NavigableMap<K, V> backingMap) {
55 @Override protected NavigableMap<K, V> delegate() {
181 public NavigableMap<K, V> descendingMap() {
218 private final NavigableMap<K, V> backingMap;
220 StandardLastEntryForwardingNavigableMap(NavigableMap<K, V> backingMap) {
224 @Override protected NavigableMap<K, V> delegate() {
241 NavigableMap<String, String> map = new SafeTreeMap<String, String>();
264 final NavigableMap<Strin
[all...]
H A DMapsCollectionTest.java51 import java.util.NavigableMap;
242 public NavigableMap<String, Integer> create(Object... elements) {
477 protected NavigableMap<String, String> create(Entry<String, String>[] entries) {
478 NavigableMap<String, String> map = new SafeTreeMap<String, String>();
485 .named("Maps.filterKeys[NavigableMap, Predicate]")
493 protected NavigableMap<String, String> create(Entry<String, String>[] entries) {
494 NavigableMap<String, String> map = new SafeTreeMap<String, String>();
501 .named("Maps.filterValues[NavigableMap, Predicate]")
509 protected NavigableMap<String, String> create(Entry<String, String>[] entries) {
510 NavigableMap<Strin
[all...]
H A DMapsTest.java59 import java.util.NavigableMap;
769 @GwtIncompatible("NavigableMap")
772 assertTrue(Maps.asMap(set, Functions.identity()) instanceof NavigableMap);
775 @GwtIncompatible("NavigableMap")
779 NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
832 @GwtIncompatible("NavigableMap")
836 NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
860 NavigableMap<String, Integer> tailMap = map.tailMap("s", true);
861 NavigableMap<String, Integer> subMap = map.subMap("a", true, "t", false);
874 @GwtIncompatible("NavigableMap")
[all...]
H A DTreeRangeSetTest.java24 import java.util.NavigableMap;
100 NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByLowerBound = Maps.newTreeMap();
105 NavigableMap<Cut<Integer>, Range<Integer>> rangesByLowerBound = rangeSet.rangesByLowerBound;
110 NavigableMap<K, V> expected, NavigableMap<K, V> navigableMap, Iterable<K> keysToTest) {
276 NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByUpperBound = Maps.newTreeMap();
109 testNavigationAgainstExpected( NavigableMap<K, V> expected, NavigableMap<K, V> navigableMap, Iterable<K> keysToTest) argument
H A DTreeMultimapNaturalTest.java51 import java.util.NavigableMap;
170 public NavigableMap<String, Collection<String>> create(Object... elements) {
/external/guava/guava/src/com/google/common/collect/
H A DPlatform.java27 import java.util.NavigableMap;
74 return (fromMap instanceof NavigableMap)
75 ? Maps.transformEntries((NavigableMap<K, V1>) fromMap, transformer)
95 return (map instanceof NavigableMap)
96 ? Maps.filterEntries((NavigableMap<K, V>) map, predicate)
H A DTreeMultimap.java29 import java.util.NavigableMap;
172 @GwtIncompatible("NavigableMap")
173 NavigableMap<K, Collection<V>> backingMap() {
174 return (NavigableMap<K, Collection<V>>) super.backingMap();
223 * returns a {@link NavigableMap}, instead of the {@link java.util.Map} specified
229 @GwtIncompatible("NavigableMap")
230 public NavigableMap<K, Collection<V>> asMap() {
231 return (NavigableMap<K, Collection<V>>) super.asMap();
235 @GwtIncompatible("NavigableMap")
236 NavigableMap<
[all...]
H A DForwardingNavigableMap.java25 import java.util.NavigableMap;
53 extends ForwardingSortedMap<K, V> implements NavigableMap<K, V> {
59 protected abstract NavigableMap<K, V> delegate();
257 public NavigableMap<K, V> descendingMap() {
262 * A sensible implementation of {@link NavigableMap#descendingMap} in terms of the methods of
263 * this {@code NavigableMap}. In many cases, you may wish to override
268 * {@link NavigableMap#lowerEntry}. If a more efficient means of iteration is available, you may
279 NavigableMap<K, V> forward() {
323 * A sensible implementation of {@link NavigableMap#navigableKeySet} in terms of the methods of
324 * this {@code NavigableMap}
[all...]
H A DAbstractNavigableMap.java22 import java.util.NavigableMap;
31 * Skeletal implementation of {@link NavigableMap}.
35 abstract class AbstractNavigableMap<K, V> extends AbstractMap<K, V> implements NavigableMap<K, V> {
182 public NavigableMap<K, V> descendingMap() {
188 NavigableMap<K, V> forward() {
H A DTreeRangeSet.java29 import java.util.NavigableMap;
43 @GwtIncompatible("uses NavigableMap")
48 final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound;
66 private TreeRangeSet(NavigableMap<Cut<C>, Range<C>> rangesByLowerCut) {
243 private final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound;
251 RangesByUpperBound(NavigableMap<Cut<C>, Range<C>> rangesByLowerBound) {
257 NavigableMap<Cut<C>, Range<C>> rangesByLowerBound, Range<Cut<C>> upperBoundWindow) {
262 private NavigableMap<Cut<C>, Range<C>> subMap(Range<Cut<C>> window) {
271 public NavigableMap<Cut<C>, Range<C>> subMap(
279 public NavigableMap<Cu
256 RangesByUpperBound( NavigableMap<Cut<C>, Range<C>> rangesByLowerBound, Range<Cut<C>> upperBoundWindow) argument
[all...]
H A DMaps.java55 import java.util.NavigableMap;
748 @GwtIncompatible("NavigableMap")
749 public static <K, V> NavigableMap<K, V> asMap(
889 @GwtIncompatible("NavigableMap")
894 * NavigableMap methods.
906 public NavigableMap<K, V> subMap(
912 public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
917 public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive) {
964 public NavigableMap<K, V> descendingMap() {
1546 * NavigableMap<Strin
1583 transformValues( NavigableMap<K, V1> fromMap, Function<? super V1, V2> function) argument
1760 transformEntries( final NavigableMap<K, V1> fromMap, EntryTransformer<? super K, ? super V1, V2> transformer) argument
2201 filterKeys( NavigableMap<K, V> unfiltered, final Predicate<? super K> keyPredicate) argument
2346 filterValues( NavigableMap<K, V> unfiltered, final Predicate<? super V> valuePredicate) argument
2504 filterEntries( NavigableMap<K, V> unfiltered, Predicate<? super Entry<K, V>> entryPredicate) argument
2895 FilteredEntryNavigableMap( NavigableMap<K, V> unfiltered, Predicate<? super Entry<K, V>> entryPredicate) argument
3113 UnmodifiableNavigableMap( NavigableMap<K, V> delegate, UnmodifiableNavigableMap<K, V> descendingMap) argument
3295 synchronizedNavigableMap( NavigableMap<K, V> navigableMap) argument
[all...]
H A DAbstractMapBasedMultimap.java38 import java.util.NavigableMap;
1024 NavigableKeySet(NavigableMap<K, Collection<V>> subMap) {
1029 NavigableMap<K, Collection<V>> sortedMap() {
1030 return (NavigableMap<K, Collection<V>>) super.sortedMap();
1419 class NavigableAsMap extends SortedAsMap implements NavigableMap<K, Collection<V>> {
1421 NavigableAsMap(NavigableMap<K, Collection<V>> submap) {
1426 NavigableMap<K, Collection<V>> sortedMap() {
1427 return (NavigableMap<K, Collection<V>>) super.sortedMap();
1508 public NavigableMap<K, Collection<V>> descendingMap() {
1533 public NavigableMap<
[all...]
H A DSynchronized.java36 import java.util.NavigableMap;
1338 @GwtIncompatible("NavigableMap")
1339 static <K, V> NavigableMap<K, V> navigableMap( argument
1340 NavigableMap<K, V> navigableMap) {
1344 @GwtIncompatible("NavigableMap")
1345 static <K, V> NavigableMap<K, V> navigableMap( argument
1346 NavigableMap<K, V> navigableMap, @Nullable Object mutex) {
1350 @GwtIncompatible("NavigableMap")
1352 extends SynchronizedSortedMap<K, V> implements NavigableMap<K, V> {
1355 NavigableMap<
1354 SynchronizedNavigableMap( NavigableMap<K, V> delegate, @Nullable Object mutex) argument
[all...]
H A DImmutableSortedMap.java29 import java.util.NavigableMap;
56 * NavigableMap} since 12.0)
60 extends ImmutableSortedMapFauxverideShim<K, V> implements NavigableMap<K, V> {
H A DTreeRangeMap.java38 import java.util.NavigableMap;
55 @GwtIncompatible("NavigableMap")
58 private final NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound;
/external/guava/guava-testlib/test/com/google/common/collect/testing/
H A DSafeTreeMapTest.java38 import java.util.NavigableMap;
54 NavigableMap<String, String> map =
68 NavigableMap<String, String> map =
107 NavigableMap<String, Integer> map = new SafeTreeMap<String, Integer>();
116 NavigableMap<String, Integer> map = new SafeTreeMap<String, Integer>();
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DNavigableMapTestSuiteBuilder.java33 import java.util.NavigableMap;
38 * a NavigableMap implementation.
87 @Override NavigableMap<K, V> createSubMap(SortedMap<K, V> sortedMap, K firstExclusive,
89 NavigableMap<K, V> map = (NavigableMap<K, V>) sortedMap;
101 return (NavigableMap<K, V>) super.createSubMap(map, firstExclusive, lastExclusive);
127 NavigableMap<K, V> map = (NavigableMap<K, V>) delegate.create(entries);
H A DSafeTreeMap.java25 import java.util.NavigableMap;
39 implements Serializable, NavigableMap<K, V> {
46 private final NavigableMap<K, V> delegate;
64 private SafeTreeMap(NavigableMap<K, V> delegate) {
113 @Override public NavigableMap<K, V> descendingMap() {
180 @Override public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
248 @Override public NavigableMap<K, V> subMap(
262 @Override public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive) {
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DNavigableMapNavigationTester.java33 import java.util.NavigableMap;
36 * A generic JUnit test which tests operations on a NavigableMap. Can't be
44 private NavigableMap<K, V> navigableMap;
52 navigableMap = (NavigableMap<K, V>) getMap();
75 navigableMap = (NavigableMap<K, V>) getMap();
/external/guava/guava-testlib/src/com/google/common/testing/
H A DArbitraryInstances.java122 import java.util.NavigableMap;
254 .put(NavigableMap.class, Maps.unmodifiableNavigableMap(Maps.newTreeMap()))
H A DFreshValueGenerator.java112 import java.util.NavigableMap;
634 @Generates private static <K extends Comparable<? super K>, V> NavigableMap<K, V>
/external/guava/guava-testlib/test/com/google/common/testing/
H A DFreshValueGeneratorTest.java102 import java.util.NavigableMap;
470 assertFreshInstance(new TypeToken<NavigableMap<?, ?>>() {});
476 new TypeToken<NavigableMap<String, Integer>>() {}));
477 assertNotInstantiable(new TypeToken<NavigableMap<EmptyEnum, String>>() {});
H A DArbitraryInstancesTest.java105 import java.util.NavigableMap;
208 assertTrue(ArbitraryInstances.get(NavigableMap.class).isEmpty());
/external/guice/lib/
H A Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/com. ...

Completed in 321 milliseconds

12