/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
H A D | SortedSetNavigationTester.java | 42 private SortedSet<E> sortedSet; field in class:SortedSetNavigationTester 50 sortedSet = (SortedSet<E>) getSet(); 53 Collections.sort(values, sortedSet.comparator()); 68 sortedSet.first(); 77 sortedSet.last(); 85 assertEquals(a, sortedSet.first()); 90 assertEquals(a, sortedSet.last()); 95 assertEquals(a, sortedSet.first()); 100 assertEquals(c, sortedSet.last());
|
/external/guava/guava/src/com/google/common/collect/ |
H A D | SortedIterables.java | 52 // if sortedSet.comparator() is null, the set must be naturally ordered 53 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { argument 54 Comparator<? super E> result = sortedSet.comparator();
|
H A D | FluentIterable.java | 310 SortedSet<E> sortedSet = (SortedSet<E>) iterable; 311 return Optional.of(sortedSet.last());
|
H A D | ImmutableSortedSet.java | 393 * <p>This method is safe to use even when {@code sortedSet} is a synchronized 397 * @throws NullPointerException if {@code sortedSet} or any of its elements 400 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { argument 401 Comparator<? super E> comparator = SortedIterables.comparator(sortedSet); 402 ImmutableList<E> list = ImmutableList.copyOf(sortedSet);
|
H A D | Constraints.java | 125 * @param sortedSet the sorted set to constrain 130 SortedSet<E> sortedSet, Constraint<? super E> constraint) { 131 return new ConstrainedSortedSet<E>(sortedSet, constraint); 129 constrainedSortedSet( SortedSet<E> sortedSet, Constraint<? super E> constraint) argument
|
H A D | Synchronized.java | 242 private static <E> SortedSet<E> sortedSet( method in class:Synchronized 267 return sortedSet(delegate().subSet(fromElement, toElement), mutex); 274 return sortedSet(delegate().headSet(toElement), mutex); 281 return sortedSet(delegate().tailSet(fromElement), mutex); 793 return sortedSet(delegate().get(key), mutex); 819 return sortedSet((SortedSet<E>) collection, mutex); 833 return sortedSet((SortedSet<E>) set, mutex);
|
/external/snakeyaml/src/test/java/examples/collections/ |
H A D | TypeSafeSetImplementationsTest.java | 35 SortedSet<String> sortedSet = new TreeSet<String>(); 36 sortedSet.add("two"); 37 sortedSet.add("one"); 38 sortedSet.add("three"); 39 bean.setSorted(sortedSet); 53 SortedSet<String> sortedSet = new TreeSet<String>(); 54 sortedSet.add("two"); 55 sortedSet.add("one"); 56 sortedSet.add("three"); 57 bean.setSorted(sortedSet); [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ConstraintsTest.java | 124 SortedSet<String> sortedSet = Sets.newTreeSet(asList("foo", "bar")); 126 sortedSet, TEST_CONSTRAINT); 127 sortedSet.add(TEST_ELEMENT); 130 assertTrue(sortedSet.equals(constrained)); 131 assertTrue(constrained.equals(sortedSet)); 132 assertEquals(sortedSet.toString(), constrained.toString()); 133 assertEquals(sortedSet.hashCode(), constrained.hashCode()); 134 assertThat(sortedSet).has().exactly("bar", "cat", "dog", "foo", "qux", TEST_ELEMENT).inOrder(); 143 SortedSet<String> sortedSet = Sets.newTreeSet(asList("foo", "bar")); 145 sortedSet, TEST_CONSTRAIN [all...] |
H A D | ForwardingSortedSetTest.java | 135 final SortedSet<String> sortedSet 139 return sortedSet;
|
H A D | ImmutableSetTest.java | 208 ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); 209 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); 210 assertNotSame(sortedSet, copy);
|
H A D | FluentIterableTest.java | 355 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); 356 assertEquals("a", FluentIterable.from(sortedSet).first().get()); 360 SortedSet<String> sortedSet = ImmutableSortedSet.of(); 361 assertEquals(Optional.absent(), FluentIterable.from(sortedSet).first()); 394 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); 395 assertEquals("c", FluentIterable.from(sortedSet).last().get()); 399 SortedSet<String> sortedSet = ImmutableSortedSet.of(); 400 assertEquals(Optional.absent(), FluentIterable.from(sortedSet).last());
|
H A D | IterablesTest.java | 843 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); 844 assertEquals("c", Iterables.getLast(sortedSet)); 906 SortedSet<String> sortedSet = ImmutableSortedSet.of(); 908 Iterables.getLast(sortedSet);
|
/external/smali/util/src/main/java/org/jf/util/ |
H A D | ImmutableConverter.java | 146 @Nullable final SortedSet<? extends Item> sortedSet) { 147 if (sortedSet == null || sortedSet.size() == 0) { 152 ImmutableItem[] newItems = (ImmutableItem[])new Object[sortedSet.size()]; 154 for (Item item: sortedSet) { 145 toSortedSet(@onnull Comparator<? super ImmutableItem> comparator, @Nullable final SortedSet<? extends Item> sortedSet) argument
|
H A D | CollectionUtils.java | 140 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it; 141 Comparator<?> comparator = sortedSet.comparator(); 150 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it; 151 Comparator<?> comparator = sortedSet.comparator(); 172 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)collection; 173 Comparator<?> comparator = sortedSet.comparator(); 175 return sortedSet;
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ImmutableSetTest.java | 116 ImmutableSortedSet<String> sortedSet = ImmutableSortedSet.of("a"); 117 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet); 118 assertNotSame(sortedSet, copy);
|
H A D | IterablesTest.java | 758 SortedSet<String> sortedSet = ImmutableSortedSet.of("b", "c", "a"); 759 assertEquals("c", Iterables.getLast(sortedSet)); 821 SortedSet<String> sortedSet = ImmutableSortedSet.of(); 823 Iterables.getLast(sortedSet);
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ImmutableSortedSet.java | 171 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { argument 172 Comparator<? super E> comparator = sortedSet.comparator(); 176 return copyOfInternal(comparator, sortedSet.iterator()); 218 SortedSet<?> sortedSet = (SortedSet<?>) elements; 219 Comparator<?> comparator2 = sortedSet.comparator();
|
H A D | FluentIterable.java | 298 SortedSet<E> sortedSet = (SortedSet<E>) iterable; 299 return Optional.of(sortedSet.last());
|
H A D | Synchronized.java | 226 private static <E> SortedSet<E> sortedSet( method in class:Synchronized 251 return sortedSet(delegate().subSet(fromElement, toElement), mutex); 258 return sortedSet(delegate().headSet(toElement), mutex); 265 return sortedSet(delegate().tailSet(fromElement), mutex); 777 return sortedSet(delegate().get(key), mutex); 803 return sortedSet((SortedSet<E>) collection, mutex); 817 return sortedSet((SortedSet<E>) set, mutex);
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
H A D | SortedCopyBenchmark.java | 118 int sortedSet(int reps) { method in class:SortedCopyBenchmark
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
H A D | NavigableSetTestSuiteBuilder.java | 76 @Override NavigableSet<E> createSubSet(SortedSet<E> sortedSet, E firstExclusive, argument 78 NavigableSet<E> set = (NavigableSet<E>) sortedSet;
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
H A D | NullPointerTesterTest.java | 853 SortedSet<Number> sortedSet, 868 sortedSet, immutableSortedSet, 843 checkDefaultValuesForTheseTypes( Gender gender, Integer integer, int i, String string, CharSequence charSequence, List<String> list, ImmutableList<Integer> immutableList, Map<String, Integer> map, ImmutableMap<String, String> immutableMap, Set<String> set, ImmutableSet<Integer> immutableSet, SortedSet<Number> sortedSet, ImmutableSortedSet<Number> immutableSortedSet, Multiset<String> multiset, ImmutableMultiset<Integer> immutableMultiset, Multimap<String, Integer> multimap, ImmutableMultimap<String, Integer> immutableMultimap, Table<String, Integer, Exception> table, ImmutableTable<Integer, String, Exception> immutableTable) argument
|
/external/owasp/sanitizer/distrib/lib/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |
/external/owasp/sanitizer/lib/guava-libraries/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |
/external/guice/lib/build/ |
H A D | guava-testlib-16.0.1.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |