/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Iterables.java | 62 public static <T> Iterable<T> unmodifiableIterable( in unmodifiableIterable() 63 final Iterable<T> iterable) { in unmodifiableIterable() 78 @Deprecated public static <E> Iterable<E> unmodifiableIterable( in unmodifiableIterable() 84 private final Iterable<T> iterable; 86 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable() 105 public static int size(Iterable<?> iterable) { in size() 115 public static boolean contains(Iterable<?> iterable, @Nullable Object element) { in contains() 135 Iterable<?> removeFrom, Collection<?> elementsToRemove) { in removeAll() 153 Iterable<?> removeFrom, Collection<?> elementsToRetain) { in retainAll() 173 Iterable<T> removeFrom, Predicate<? super T> predicate) { in removeIf() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | Iterables.java | 64 public static <T> Iterable<T> unmodifiableIterable( in unmodifiableIterable() 65 final Iterable<T> iterable) { in unmodifiableIterable() 80 @Deprecated public static <E> Iterable<E> unmodifiableIterable( in unmodifiableIterable() 86 private final Iterable<T> iterable; 88 private UnmodifiableIterable(Iterable<T> iterable) { in UnmodifiableIterable() 107 public static int size(Iterable<?> iterable) { in size() 117 public static boolean contains(Iterable<?> iterable, @Nullable Object element) { in contains() 137 Iterable<?> removeFrom, Collection<?> elementsToRemove) { in removeAll() 155 Iterable<?> removeFrom, Collection<?> elementsToRetain) { in retainAll() 175 Iterable<T> removeFrom, Predicate<? super T> predicate) { in removeIf() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | SplitterTest.java | 53 Iterable<String> letters = COMMA_SPLITTER.split(simple); in testCharacterSimpleSplit() 79 Iterable<String> letters = Splitter.on('.').split(simple); in testCharacterSimpleSplitWithNoDelimiter() 85 Iterable<String> letters = COMMA_SPLITTER.split(doubled); in testCharacterSplitWithDoubleDelimiter() 91 Iterable<String> letters = COMMA_SPLITTER.split(doubled); in testCharacterSplitWithDoubleDelimiterAndSpace() 97 Iterable<String> letters = COMMA_SPLITTER.split(trailing); in testCharacterSplitWithTrailingDelimiter() 103 Iterable<String> letters = COMMA_SPLITTER.split(leading); in testCharacterSplitWithLeadingDelimiter() 108 Iterable<String> testCharacteringMotto = Splitter.on('-').split( in testCharacterSplitWithMulitpleLetters() 115 Iterable<String> testCharacteringMotto = Splitter in testCharacterSplitWithMatcherDelimiter() 124 Iterable<String> letters = Splitter.on('.') in testCharacterSplitWithDoubleDelimiterOmitEmptyStrings() 131 Iterable<String> letters = Splitter.on('.').trimResults() in testCharacterSplitEmptyToken() [all …]
|
D | JoinerTest.java | 49 private static final Iterable<Integer> ITERABLE_ = Arrays.<Integer>asList(); 50 private static final Iterable<Integer> ITERABLE_1 = Arrays.asList(1); 51 private static final Iterable<Integer> ITERABLE_12 = Arrays.asList(1, 2); 52 private static final Iterable<Integer> ITERABLE_123 = Arrays.asList(1, 2, 3); 53 private static final Iterable<Integer> ITERABLE_NULL = Arrays.asList((Integer) null); 54 private static final Iterable<Integer> ITERABLE_NULL_NULL 56 private static final Iterable<Integer> ITERABLE_NULL_1 = Arrays.asList(null, 1); 57 private static final Iterable<Integer> ITERABLE_1_NULL = Arrays.asList(1, null); 58 private static final Iterable<Integer> ITERABLE_1_NULL_2 = Arrays.asList(1, null, 2); 59 private static final Iterable<Integer> ITERABLE_FOUR_NULLS [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | SplitterTest.java | 50 Iterable<String> letters = COMMA_SPLITTER.split(simple); in testCharacterSimpleSplit() 76 Iterable<String> letters = Splitter.on('.').split(simple); in testCharacterSimpleSplitWithNoDelimiter() 82 Iterable<String> letters = COMMA_SPLITTER.split(doubled); in testCharacterSplitWithDoubleDelimiter() 88 Iterable<String> letters = COMMA_SPLITTER.split(doubled); in testCharacterSplitWithDoubleDelimiterAndSpace() 94 Iterable<String> letters = COMMA_SPLITTER.split(trailing); in testCharacterSplitWithTrailingDelimiter() 100 Iterable<String> letters = COMMA_SPLITTER.split(leading); in testCharacterSplitWithLeadingDelimiter() 105 Iterable<String> testCharacteringMotto = Splitter.on('-').split( in testCharacterSplitWithMulitpleLetters() 112 Iterable<String> testCharacteringMotto = Splitter in testCharacterSplitWithMatcherDelimiter() 121 Iterable<String> letters = Splitter.on('.') in testCharacterSplitWithDoubleDelimiterOmitEmptyStrings() 128 Iterable<String> letters = Splitter.on('.').trimResults() in testCharacterSplitEmptyToken() [all …]
|
D | JoinerTest.java | 46 private static final Iterable<Integer> ITERABLE_ = Arrays.<Integer>asList(); 47 private static final Iterable<Integer> ITERABLE_1 = Arrays.asList(1); 48 private static final Iterable<Integer> ITERABLE_12 = Arrays.asList(1, 2); 49 private static final Iterable<Integer> ITERABLE_123 = Arrays.asList(1, 2, 3); 50 private static final Iterable<Integer> ITERABLE_NULL = Arrays.asList((Integer) null); 51 private static final Iterable<Integer> ITERABLE_NULL_NULL 53 private static final Iterable<Integer> ITERABLE_NULL_1 = Arrays.asList(null, 1); 54 private static final Iterable<Integer> ITERABLE_1_NULL = Arrays.asList(1, null); 55 private static final Iterable<Integer> ITERABLE_1_NULL_2 = Arrays.asList(1, null, 2); 56 private static final Iterable<Integer> ITERABLE_FOUR_NULLS [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | IterablesTest.java | 65 Iterable<String> iterable = Collections.emptySet(); in testSize0() 70 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() 75 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() 95 private static Iterable<String> iterable(String... elements) { in iterable() 97 return new Iterable<String>() { in iterable() 106 Iterable<String> set = Sets.newHashSet("a", null, "b"); 111 Iterable<String> set = Sets.newHashSet("a", "b"); 116 Iterable<String> set = iterable("a", null, "b"); 121 Iterable<String> set = iterable("a", "b"); 126 Iterable<String> set = Sets.newHashSet("a", null, "b"); [all …]
|
D | FluentIterableTest.java | 76 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() 96 Iterable<String> set = Sets.newHashSet("a", null, "b"); in testContains_nullSetYes() 101 Iterable<String> set = ImmutableSortedSet.of("a", "b"); in testContains_nullSetNo() 106 Iterable<String> iterable = iterable("a", null, "b"); in testContains_nullIterableYes() 111 Iterable<String> iterable = iterable("a", "b"); in testContains_nullIterableNo() 116 Iterable<String> set = Sets.newHashSet("a", null, "b"); in testContains_nonNullSetYes() 121 Iterable<String> set = Sets.newHashSet("a", "b"); in testContains_nonNullSetNo() 126 Iterable<String> set = iterable("a", null, "b"); in testContains_nonNullIterableYes() 131 Iterable<String> iterable = iterable("a", "b"); in testContains_nonNullIterableNo() 191 Iterable<TypeB> blist = alist.filter(TypeB.class); in testFilterByType() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | IterablesTest.java | 59 Iterable<String> iterable = Collections.emptySet(); in testSize0() 64 Iterable<String> iterable = Collections.singleton("a"); in testSize1Collection() 69 Iterable<Integer> iterable = new Iterable<Integer>() { in testSize2NonCollection() 89 private static Iterable<String> iterable(String... elements) { in iterable() 91 return new Iterable<String>() { in iterable() 100 Iterable<String> set = Sets.newHashSet("a", null, "b"); 105 Iterable<String> set = Sets.newHashSet("a", "b"); 110 Iterable<String> set = iterable("a", null, "b"); 115 Iterable<String> set = iterable("a", "b"); 120 Iterable<String> set = Sets.newHashSet("a", null, "b"); [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | InvokableTest.java | 118 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_returnType() 119 assertEquals(new TypeToken<Iterable<String>>() {}, delegate.getReturnType()); in testStaticMethod_returnType() 123 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_exceptionTypes() 128 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_typeParameters() 135 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_parameters() 140 assertEquals(new TypeToken<Iterable<String>>() {}, parameters.get(1).getType()); in testStaticMethod_parameters() 149 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_call() 151 Iterable<String> result = (Iterable<String>) in testStaticMethod_call() 157 Invokable<?, Iterable<String>> delegate = Prepender.method( in testStaticMethod_returning() 158 "prepend", String.class, Iterable.class) in testStaticMethod_returning() [all …]
|
D | TypeTokenTest.java | 136 public <F extends Enum<F> & Function<String, Integer> & Iterable<Long>> 144 f.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable() 147 public <E extends Comparable<Iterable<String>> & Iterable<Integer>> 151 e.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable_onlyDirectBoundsAreUsed() 156 new TypeCapture<Comparable<? extends Iterable<String>>>() {}.capture(); in testResolveType_fromWildcard() 159 wildcardType.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromWildcard() 199 new TypeToken<Iterable<String>>() {}, in testGetTypes_withInterfacesAndSuperclasses() 211 new TypeToken<Iterable<String>>() {}); in testGetTypes_withInterfacesAndSuperclasses() 226 Iterable.class, in testGetTypes_rawTypes_withInterfacesAndSuperclasses() 238 Iterable.class); in testGetTypes_rawTypes_withInterfacesAndSuperclasses() [all …]
|
D | ImmutableTypeToInstanceMapTest.java | 96 ImmutableTypeToInstanceMap<Iterable<?>> map = ImmutableTypeToInstanceMap.<Iterable<?>>builder() in testParameterizedType() 107 ImmutableTypeToInstanceMap<Iterable<?>[]> map = in testGeneriArrayType() 108 ImmutableTypeToInstanceMap.<Iterable<?>[]>builder() in testGeneriArrayType() 117 ImmutableTypeToInstanceMap<Iterable<?>> map = ImmutableTypeToInstanceMap.<Iterable<?>>builder() in testWildcardType() 125 ImmutableTypeToInstanceMap<Iterable<Number>> map = ImmutableTypeToInstanceMap.of(); in testGetInstance_containsTypeVariable() 133 ImmutableTypeToInstanceMap.Builder<Iterable<Integer>> builder = in testPut_containsTypeVariable() 141 private <T> TypeToken<Iterable<T>> anyIterableType() { in anyIterableType() 142 return new TypeToken<Iterable<T>>() {}; in anyIterableType() 168 Maps.immutableEntry((TypeToken) new TypeToken<Iterable<?>>() {}, in samples() 182 public Iterable<Entry<TypeToken, Object>> order(List<Entry<TypeToken, Object>> insertionOrder) { in order()
|
/external/hamcrest/library/src/org/hamcrest/collection/ |
D | IsCollectionContaining.java | 13 public class IsCollectionContaining<T> extends TypeSafeMatcher<Iterable<T>> { 20 public boolean matchesSafely(Iterable<T> collection) { in matchesSafely() 36 public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher) { in hasItem() 41 public static <T> Matcher<Iterable<T>> hasItem(T element) { in hasItem() 46 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? extends T>... elementMatchers) { in hasItems() 47 Collection<Matcher<? extends Iterable<T>>> all in hasItems() 48 = new ArrayList<Matcher<? extends Iterable<T>>>(elementMatchers.length); in hasItems() 56 public static <T> Matcher<Iterable<T>> hasItems(T... elements) { in hasItems() 57 Collection<Matcher<? extends Iterable<T>>> all in hasItems() 58 = new ArrayList<Matcher<? extends Iterable<T>>>(elements.length); in hasItems()
|
/external/junit/src/org/junit/internal/matchers/ |
D | IsCollectionContaining.java | 14 public class IsCollectionContaining<T> extends TypeSafeMatcher<Iterable<T>> { 22 public boolean matchesSafely(Iterable<T> collection) { in matchesSafely() 38 public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher) { in hasItem() 43 public static <T> Matcher<Iterable<T>> hasItem(T element) { in hasItem() 48 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? extends T>... elementMatchers) { in hasItems() 49 Collection<Matcher<? extends Iterable<T>>> all in hasItems() 50 = new ArrayList<Matcher<? extends Iterable<T>>>(elementMatchers.length); in hasItems() 58 public static <T> Matcher<Iterable<T>> hasItems(T... elements) { in hasItems() 59 Collection<Matcher<? extends Iterable<T>>> all in hasItems() 60 = new ArrayList<Matcher<? extends Iterable<T>>>(elements.length); in hasItems()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/iface/ |
D | ClassDef.java | 107 @Nonnull Iterable<? extends Field> getStaticFields(); in getStaticFields() 116 @Nonnull Iterable<? extends Field> getInstanceFields(); in getInstanceFields() 131 @Nonnull Iterable<? extends Field> getFields(); in getFields() 140 @Nonnull Iterable<? extends Method> getDirectMethods(); in getDirectMethods() 149 @Nonnull Iterable<? extends Method> getVirtualMethods(); in getVirtualMethods() 164 @Nonnull Iterable<? extends Method> getMethods(); in getMethods()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/ |
D | ClassDefRewriter.java | 88 @Override @Nonnull public Iterable<? extends Field> getStaticFields() { in getStaticFields() 92 @Override @Nonnull public Iterable<? extends Field> getInstanceFields() { in getInstanceFields() 98 public Iterable<? extends Field> getFields() { in getFields() 99 return new Iterable<Field>() { in getFields() 108 @Override @Nonnull public Iterable<? extends Method> getDirectMethods() { in getDirectMethods() 112 @Override @Nonnull public Iterable<? extends Method> getVirtualMethods() { in getVirtualMethods() 118 public Iterable<? extends Method> getMethods() { in getMethods() 119 return new Iterable<Method>() { in getMethods()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathTesting.java | 103 static final Iterable<Integer> NEGATIVE_INTEGER_CANDIDATES; 105 static final Iterable<Integer> NONZERO_INTEGER_CANDIDATES; 107 static final Iterable<Integer> ALL_INTEGER_CANDIDATES; 140 static final Iterable<Long> NEGATIVE_LONG_CANDIDATES; 142 static final Iterable<Long> NONZERO_LONG_CANDIDATES; 144 static final Iterable<Long> ALL_LONG_CANDIDATES; 173 static final Iterable<BigInteger> NEGATIVE_BIGINTEGER_CANDIDATES; 175 static final Iterable<BigInteger> NONZERO_BIGINTEGER_CANDIDATES; 177 static final Iterable<BigInteger> ALL_BIGINTEGER_CANDIDATES; 209 static final Iterable<Double> INFINITIES = Doubles.asList( [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
D | DexBackedClassDef.java | 142 public Iterable<? extends DexBackedField> getStaticFields() { 147 public Iterable<? extends DexBackedField> getStaticFields(final boolean skipDuplicates) { 156 return new Iterable<DexBackedField>() { 205 public Iterable<? extends DexBackedField> getInstanceFields() { 210 public Iterable<? extends DexBackedField> getInstanceFields(final boolean skipDuplicates) { 217 return new Iterable<DexBackedField>() { 266 public Iterable<? extends DexBackedField> getFields() { 272 public Iterable<? extends DexBackedMethod> getDirectMethods() { 277 public Iterable<? extends DexBackedMethod> getDirectMethods(final boolean skipDuplicates) { 284 return new Iterable<DexBackedMethod>() { [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | IterableComparator.java | 12 public class IterableComparator<T> implements Comparator<Iterable<T>> { 29 public int compare(Iterable<T> a, Iterable<T> b) { in compare() 55 public static <T> int compareIterables(Iterable<T> a, Iterable<T> b) { in compareIterables()
|
/external/junit/src/org/junit/matchers/ |
D | JUnitMatchers.java | 18 public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItem(T element) { in hasItem() 26 …public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItem(org.hamcrest.Matcher<? exten… in hasItem() 34 public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItems(T... elements) { in hasItems() 44 …public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItems(org.hamcrest.Matcher<? exte… in hasItems() 52 public static <T> Matcher<Iterable<T>> everyItem(final Matcher<T> elementMatcher) { in everyItem()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
D | ClassPath.java | 77 public ClassPath(@Nonnull Iterable<DexFile> classPath, int api) { in ClassPath() 87 public ClassPath(@Nonnull Iterable<DexFile> classPath, boolean checkPackagePrivateAccess) { in ClassPath() 89 … Iterable<DexFile> dexFiles = Iterables.concat(classPath, Lists.newArrayList(getBasicClasses())); in ClassPath() 166 …public static ClassPath fromClassPath(Iterable<String> classPathDirs, Iterable<String> classPath, … in fromClassPath() 172 …public static ClassPath fromClassPath(Iterable<String> classPathDirs, Iterable<String> classPath, … in fromClassPath() 188 private static DexFile loadClassPathEntry(@Nonnull Iterable<String> classPathDirs, in loadClassPathEntry()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | ListIteratorTester.java | 43 protected ListIteratorTester(int steps, Iterable<E> elementsToInsert, in ListIteratorTester() 44 Iterable<? extends IteratorFeature> features, in ListIteratorTester() 45 Iterable<E> expectedElements, int startIndex) { in ListIteratorTester() 51 protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>>
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 92 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BOOLEAN() 100 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTE() 108 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_SHORT() 116 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_CHAR() 124 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_INT() 132 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_LONG() 140 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_FLOAT() 148 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_DOUBLE() 156 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTES() 165 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTES_INT_INT() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/ |
D | Helpers.java | 51 public static <E> List<E> copyToList(Iterable<? extends E> elements) { in copyToList() 62 public static <E> Set<E> copyToSet(Iterable<? extends E> elements) { in copyToSet() 78 Iterable<?> expected, Iterable<?> actual) { in assertEqualIgnoringOrder() 97 Iterable<?> actual, Object... expected) { in assertContentsAnyOrder() 102 Collection<E> addTo, Iterable<? extends E> elementsToAdd) { in addAll() 110 static <T> Iterable<T> reverse(final List<T> list) { in reverse() 111 return new Iterable<T>() { in reverse() 133 static <T> Iterator<T> cycle(final Iterable<T> iterable) { 298 static <E> List<E> castOrCopyToList(Iterable<E> iterable) { 316 public static <K extends Comparable, V> Iterable<Entry<K, V>> orderEntriesByKey(
|
/external/smali/util/src/main/java/org/jf/util/ |
D | CollectionUtils.java | 43 public static <T> int listHashCode(@Nonnull Iterable<T> iterable) { in listHashCode() 51 …public static <T> int lastIndexOf(@Nonnull Iterable<T> iterable, @Nonnull Predicate<? super T> pre… in lastIndexOf() 76 @Nonnull Iterable<? extends T> it1, in compareAsIterable() 77 @Nonnull Iterable<? extends T> it2) { in compareAsIterable() 95 …public static <T extends Comparable<? super T>> int compareAsIterable(@Nonnull Iterable<? extends … in compareAsIterable() 96 … @Nonnull Iterable<? extends T> it2) { in compareAsIterable() 138 public static <T> boolean isNaturalSortedSet(@Nonnull Iterable<? extends T> it) { 148 @Nonnull Iterable<? extends T> it) {
|