Home
last modified time | relevance | path

Searched refs:Iterable (Results 1 – 25 of 589) sorted by relevance

12345678910>>...24

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterables.java62 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/
DIterables.java64 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/
DSplitterTest.java53 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 …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DSplitterTest.java50 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 …]
DJoinerTest.java46 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/
DIterablesTest.java65 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 …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DIterablesTest.java59 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/
DInvokableTest.java118 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 …]
DTypeTokenTest.java135 public <F extends Enum<F> & Function<String, Integer> & Iterable<Long>>
143 f.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable()
146 public <E extends Comparable<Iterable<String>> & Iterable<Integer>>
150 e.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromTypeVariable_onlyDirectBoundsAreUsed()
155 new TypeCapture<Comparable<? extends Iterable<String>>>() {}.capture(); in testResolveType_fromWildcard()
158 wildcardType.resolveType(Iterable.class.getTypeParameters()[0]).getType()); in testResolveType_fromWildcard()
198 new TypeToken<Iterable<String>>() {}, in testGetTypes_withInterfacesAndSuperclasses()
210 new TypeToken<Iterable<String>>() {}); in testGetTypes_withInterfacesAndSuperclasses()
225 Iterable.class, in testGetTypes_rawTypes_withInterfacesAndSuperclasses()
237 Iterable.class); in testGetTypes_rawTypes_withInterfacesAndSuperclasses()
[all …]
DImmutableTypeToInstanceMapTest.java96 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/hamcrest-core/src/main/java/org/hamcrest/core/
DIsCollectionContaining.java13 public class IsCollectionContaining<T> extends TypeSafeDiagnosingMatcher<Iterable<? super T>> {
21 … protected boolean matchesSafely(Iterable<? super T> collection, Description mismatchDescription) { in matchesSafely()
46 private boolean isEmpty(Iterable<? super T> iterable) { in isEmpty()
69 public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher) { in hasItem()
84 public static <T> Matcher<Iterable<? super T>> hasItem(T item) { in hasItem()
101 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? super T>... itemMatchers) { in hasItems()
102 List<Matcher<? super Iterable<T>>> all = new ArrayList<>(itemMatchers.length); in hasItems()
124 public static <T> Matcher<Iterable<T>> hasItems(T... items) { in hasItems()
125 List<Matcher<? super Iterable<T>>> all = new ArrayList<>(items.length); in hasItems()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/iface/
DClassDef.java108 @Nonnull Iterable<? extends Field> getStaticFields(); in getStaticFields()
117 @Nonnull Iterable<? extends Field> getInstanceFields(); in getInstanceFields()
132 @Nonnull Iterable<? extends Field> getFields(); in getFields()
141 @Nonnull Iterable<? extends Method> getDirectMethods(); in getDirectMethods()
150 @Nonnull Iterable<? extends Method> getVirtualMethods(); in getVirtualMethods()
165 @Nonnull Iterable<? extends Method> getMethods(); in getMethods()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsCollectionContainingTest.java30 final Matcher<Iterable<? super String>> itemMatcher = hasItem(equalTo("a")); in matchesACollectionThatContainsAnElementForTheGivenMatcher()
37 final Matcher<Iterable<? super String>> matcher = hasItem(mismatchable("a")); in doesNotMatchCollectionWithoutAnElementForGivenMatcher()
65 … final Matcher<Iterable<String>> matcher1 = hasItems(equalTo("a"), equalTo("b"), equalTo("c")); in matchesMultipleItemsInCollection()
68 final Matcher<Iterable<String>> matcher2 = hasItems("a", "b", "c"); in matchesMultipleItemsInCollection()
71 … final Matcher<Iterable<String>> matcher3 = hasItems(equalTo("a"), equalTo("b"), equalTo("c")); in matchesMultipleItemsInCollection()
74 … final Matcher<Iterable<String>> matcher4 = hasItems(equalTo("a"), equalTo("b"), equalTo("c")); in matchesMultipleItemsInCollection()
77 … final Matcher<Iterable<String>> matcher5 = hasItems(equalTo("a"), equalTo("b"), equalTo("c")); in matchesMultipleItemsInCollection()
83 final Matcher<Iterable<Integer>> matcher = hasItems(3, 4); in reportsMismatchWithAReadableDescriptionForMultipleItems()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DClassDefRewriter.java89 @Override @Nonnull public Iterable<? extends Field> getStaticFields() { in getStaticFields()
93 @Override @Nonnull public Iterable<? extends Field> getInstanceFields() { in getInstanceFields()
99 public Iterable<? extends Field> getFields() { in getFields()
100 return new Iterable<Field>() { in getFields()
109 @Override @Nonnull public Iterable<? extends Method> getDirectMethods() { in getDirectMethods()
113 @Override @Nonnull public Iterable<? extends Method> getVirtualMethods() { in getVirtualMethods()
119 public Iterable<? extends Method> getMethods() { in getMethods()
120 return new Iterable<Method>() { in getMethods()
/external/guava/guava-tests/test/com/google/common/math/
DMathTesting.java103 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;
174 static final Iterable<BigInteger> NEGATIVE_BIGINTEGER_CANDIDATES;
176 static final Iterable<BigInteger> NONZERO_BIGINTEGER_CANDIDATES;
178 static final Iterable<BigInteger> ALL_BIGINTEGER_CANDIDATES;
206 static final Iterable<Double> INFINITIES = Doubles.asList(
[all …]
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsEmptyIterable.java10 public class IsEmptyIterable<E> extends TypeSafeMatcher<Iterable<? extends E>> {
13 public boolean matchesSafely(Iterable<? extends E> iterable) { in matchesSafely()
17 … public void describeMismatchSafely(Iterable<? extends E> iter, Description mismatchDescription) { in describeMismatchSafely()
32 public static <E> Matcher<Iterable<? extends E>> emptyIterable() { in emptyIterable()
45 public static <E> Matcher<Iterable<E>> emptyIterableOf(Class<E> unusedToForceReturnType) { in emptyIterableOf()
DIsIterableContainingInRelativeOrder.java13 public class IsIterableContainingInRelativeOrder<E> extends TypeSafeDiagnosingMatcher<Iterable<? ex…
21 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely()
45 public void processItems(Iterable<? extends F> iterable) { in processItems()
80 public static <E> Matcher<Iterable<? extends E>> containsInRelativeOrder(E... items) { in containsInRelativeOrder()
99 …public static <E> Matcher<Iterable<? extends E>> containsInRelativeOrder(Matcher<? super E>... ite… in containsInRelativeOrder()
114 …public static <E> Matcher<Iterable<? extends E>> containsInRelativeOrder(List<Matcher<? super E>> … in containsInRelativeOrder()
DIsIterableContainingInAnyOrder.java14 public class IsIterableContainingInAnyOrder<T> extends TypeSafeDiagnosingMatcher<Iterable<? extends…
22 protected boolean matchesSafely(Iterable<? extends T> items, Description mismatchDescription) { in matchesSafely()
57 public boolean isFinished(Iterable<? extends S> items) { in isFinished()
99 …public static <T> Matcher<Iterable<? extends T>> containsInAnyOrder(Matcher<? super T>... itemMatc… in containsInAnyOrder()
123 public static <T> Matcher<Iterable<? extends T>> containsInAnyOrder(T... items) { in containsInAnyOrder()
150 …public static <T> Matcher<Iterable<? extends T>> containsInAnyOrder(Collection<Matcher<? super T>>… in containsInAnyOrder()
DIsIterableWithSize.java10 public class IsIterableWithSize<E> extends FeatureMatcher<Iterable<E>, Integer> {
18 protected Integer featureValueOf(Iterable<E> actual) { in featureValueOf()
36 public static <E> Matcher<Iterable<E>> iterableWithSize(Matcher<? super Integer> sizeMatcher) { in iterableWithSize()
50 public static <E> Matcher<Iterable<E>> iterableWithSize(int size) { in iterableWithSize()
DIsIterableContainingInOrder.java14 public class IsIterableContainingInOrder<E> extends TypeSafeDiagnosingMatcher<Iterable<? extends E>…
22 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely()
95 public static <E> Matcher<Iterable<? extends E>> contains(E... items) { in contains()
116 … public static <E> Matcher<Iterable<? extends E>> contains(final Matcher<? super E> itemMatcher) { in contains()
131 public static <E> Matcher<Iterable<? extends E>> contains(Matcher<? super E>... itemMatchers) { in contains()
150 … public static <E> Matcher<Iterable<? extends E>> contains(List<Matcher<? super E>> itemMatchers) { in contains()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
DDexBackedClassDef.java145 public Iterable<? extends DexBackedField> getStaticFields() {
150 public Iterable<? extends DexBackedField> getStaticFields(final boolean skipDuplicates) {
159 return new Iterable<DexBackedField>() {
208 public Iterable<? extends DexBackedField> getInstanceFields() {
213 public Iterable<? extends DexBackedField> getInstanceFields(final boolean skipDuplicates) {
220 return new Iterable<DexBackedField>() {
269 public Iterable<? extends DexBackedField> getFields() {
275 public Iterable<? extends DexBackedMethod> getDirectMethods() {
280 public Iterable<? extends DexBackedMethod> getDirectMethods(final boolean skipDuplicates) {
287 return new Iterable<DexBackedMethod>() {
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DIterableComparator.java18 public class IterableComparator<T> implements Comparator<Iterable<T>> {
36 public int compare(Iterable<T> a, Iterable<T> b) { in compare()
62 public static <T> int compareIterables(Iterable<T> a, Iterable<T> b) { in compareIterables()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DIterableComparator.java20 public class IterableComparator<T> implements Comparator<Iterable<T>> {
38 public int compare(Iterable<T> a, Iterable<T> b) { in compare()
64 public static <T> int compareIterables(Iterable<T> a, Iterable<T> b) { in compareIterables()
/external/junit/src/main/java/org/junit/matchers/
DJUnitMatchers.java21 public static <T> Matcher<Iterable<? super T>> hasItem(T element) { in hasItem()
30 public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> elementMatcher) { in hasItem()
39 public static <T> Matcher<Iterable<T>> hasItems(T... elements) { in hasItems()
50 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? super T>... elementMatchers) { in hasItems()
59 public static <T> Matcher<Iterable<T>> everyItem(final Matcher<T> elementMatcher) { in everyItem()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DSnippet.java100 new Function<Snippet, Iterable<TypeName>>() {
102 public Iterable<TypeName> apply(Snippet input) {
141 public static Snippet format(String format, Iterable<? extends Object> args) {
145 public static Snippet memberSelectSnippet(Iterable<? extends Object> selectors) {
160 public static Snippet makeParametersSnippet(Iterable<Snippet> parameterSnippets) {
167 public static Snippet concat(Iterable<Snippet> snippets) {
174 public static Snippet join(String joinToken, Iterable<Snippet> snippets) {

12345678910>>...24