/external/guava/guava/src/com/google/common/collect/ |
Iterables.java | 48 * of type {@code Iterable}. Except as noted, each method has a corresponding 63 /** Returns an unmodifiable view of {@code iterable}. */ 64 public static <T> Iterable<T> unmodifiableIterable( 65 final Iterable<T> iterable) { 66 checkNotNull(iterable); 67 if (iterable instanceof UnmodifiableIterable || 68 iterable instanceof ImmutableCollection) { 69 return iterable; 71 return new UnmodifiableIterable<T>(iterable); 86 private final Iterable<T> iterable; field in class:Iterables.UnmodifiableIterable [all...] |
ReverseNaturalOrdering.java | 60 @Override public <E extends Comparable> E min(Iterable<E> iterable) { 61 return NaturalOrdering.INSTANCE.max(iterable); 76 @Override public <E extends Comparable> E max(Iterable<E> iterable) { 77 return NaturalOrdering.INSTANCE.min(iterable);
|
ReverseOrdering.java | 60 @Override public <E extends T> E min(Iterable<E> iterable) { 61 return forwardOrder.max(iterable); 76 @Override public <E extends T> E max(Iterable<E> iterable) { 77 return forwardOrder.min(iterable);
|
SortedIterable.java | 23 * An {@code Iterable} whose elements are sorted relative to a {@code Comparator}, typically 29 interface SortedIterable<T> extends Iterable<T> { 31 * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
Iterables.java | 45 * of type {@code Iterable}. Except as noted, each method has a corresponding 60 /** Returns an unmodifiable view of {@code iterable}. */ 61 public static <T> Iterable<T> unmodifiableIterable( 62 final Iterable<T> iterable) { 63 checkNotNull(iterable); 64 if (iterable instanceof UnmodifiableIterable || 65 iterable instanceof ImmutableCollection) { 66 return iterable; 68 return new UnmodifiableIterable<T>(iterable); 83 private final Iterable<T> iterable; field in class:Iterables.UnmodifiableIterable [all...] |
/external/mockito/src/org/mockito/internal/util/ |
Checks.java | 20 public static <T extends Iterable> T checkItemsNotNull(T iterable, String checkedIterable) { 21 checkNotNull(iterable, checkedIterable); 22 for (Object item : iterable) { 25 return iterable;
|
/external/hamcrest/library/src/org/hamcrest/collection/ |
IsCollectionContaining.java | 13 public class IsCollectionContaining<T> extends TypeSafeMatcher<Iterable<T>> { 20 public boolean matchesSafely(Iterable<T> collection) { 36 public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher) { 41 public static <T> Matcher<Iterable<T>> hasItem(T element) { 46 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? extends T>... elementMatchers) { 47 Collection<Matcher<? extends Iterable<T>>> all 48 = new ArrayList<Matcher<? extends Iterable<T>>>(elementMatchers.length); 56 public static <T> Matcher<Iterable<T>> hasItems(T... elements) { 57 Collection<Matcher<? extends Iterable<T>>> all 58 = new ArrayList<Matcher<? extends Iterable<T>>>(elements.length) [all...] |
/external/junit/src/org/junit/internal/matchers/ |
IsCollectionContaining.java | 14 public class IsCollectionContaining<T> extends TypeSafeMatcher<Iterable<T>> { 22 public boolean matchesSafely(Iterable<T> collection) { 38 public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher) { 43 public static <T> Matcher<Iterable<T>> hasItem(T element) { 48 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? extends T>... elementMatchers) { 49 Collection<Matcher<? extends Iterable<T>>> all 50 = new ArrayList<Matcher<? extends Iterable<T>>>(elementMatchers.length); 58 public static <T> Matcher<Iterable<T>> hasItems(T... elements) { 59 Collection<Matcher<? extends Iterable<T>>> all 60 = new ArrayList<Matcher<? extends Iterable<T>>>(elements.length) [all...] |
Each.java | 10 public static <T> Matcher<Iterable<T>> each(final Matcher<T> individual) { 11 final Matcher<Iterable<T>> allItemsAre = not(hasItem(not(individual))); 13 return new BaseMatcher<Iterable<T>>() {
|
/external/guava/guava-tests/test/com/google/common/collect/ |
IterablesTest.java | 63 Iterable<String> iterable = Collections.emptySet(); local 64 assertEquals(0, Iterables.size(iterable)); 68 Iterable<String> iterable = Collections.singleton("a"); local 69 assertEquals(1, Iterables.size(iterable)); 73 Iterable<Integer> iterable = new Iterable<Integer>() { local 79 assertEquals(2, Iterables.size(iterable)); 94 private static Iterable<String> iterable(String... elements) { method in class:IterablesTest [all...] |
/external/chromium_org/v8/test/mjsunit/es6/ |
iteration-semantics.js | 44 var iterable = {}; function 45 iterable[Symbol.iterator] = function() { return iterator; }; 46 return iterable; 80 function fold(cons, seed, iterable) { 81 for (var x of iterable) { 87 function* take(iterable, n) { 89 for (let x of iterable) { 95 function nth(iterable, n) { 96 for (let x of iterable) { 102 function* skip_every(iterable, n) [all...] |
/external/smali/util/src/main/java/org/jf/util/ |
ImmutableConverter.java | 49 public ImmutableList<ImmutableItem> toList(@Nullable final Iterable<? extends Item> iterable) { 50 if (iterable == null) { 55 if (iterable instanceof ImmutableList) { 56 for (Item element: iterable) { 67 return (ImmutableList<ImmutableItem>)iterable; 70 final Iterator<? extends Item> iter = iterable.iterator(); 80 public ImmutableSet<ImmutableItem> toSet(@Nullable final Iterable<? extends Item> iterable) { 81 if (iterable == null) [all...] |
/external/guava/guava/src/com/google/common/base/ |
PairwiseEquivalence.java | 27 final class PairwiseEquivalence<T> extends Equivalence<Iterable<T>> 37 protected boolean doEquivalent(Iterable<T> iterableA, Iterable<T> iterableB) { 51 protected int doHash(Iterable<T> iterable) { 53 for (T element : iterable) {
|
/external/junit/src/org/junit/rules/ |
RunRules.java | 12 public RunRules(Statement base, Iterable<TestRule> rules, Description description) { 21 private static Statement applyAll(Statement result, Iterable<TestRule> rules,
|
/external/guava/guava-tests/test/com/google/common/base/ |
SplitterTest.java | 53 Iterable<String> letters = COMMA_SPLITTER.split(simple); 59 Iterable<String> letters = Splitter.on('.').split(simple); 65 Iterable<String> letters = COMMA_SPLITTER.split(doubled); 71 Iterable<String> letters = COMMA_SPLITTER.split(doubled); 77 Iterable<String> letters = COMMA_SPLITTER.split(trailing); 83 Iterable<String> letters = COMMA_SPLITTER.split(leading); 88 Iterable<String> testCharacteringMotto = Splitter.on('-').split( 95 Iterable<String> testCharacteringMotto = Splitter 104 Iterable<String> letters = Splitter.on('.') 111 Iterable<String> letters = Splitter.on('.').trimResults( [all...] |
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Iterator.idl | 6 Iterable,
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
DerivedTestIteratorGenerator.java | 22 * Adapts a test iterable generator to give a TestIteratorGenerator. 30 private final TestSubjectGenerator<? extends Iterable<E>> 34 TestSubjectGenerator<? extends Iterable<E>> collectionGenerator) { 38 public TestSubjectGenerator<? extends Iterable<E>> getCollectionGenerator() {
|
ListIteratorTester.java | 42 protected ListIteratorTester(int steps, Iterable<E> elementsToInsert, 43 Iterable<? extends IteratorFeature> features, 44 Iterable<E> expectedElements, int startIndex) { 50 protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>>
|
/libcore/luni/src/main/java/libcore/util/ |
CollectionUtils.java | 31 * iterable}. 33 * @param trim true to remove reference objects from the iterable after 36 public static <T> Iterable<T> dereferenceIterable( 37 final Iterable<? extends Reference<T>> iterable, final boolean trim) { 38 return new Iterable<T>() { 41 private final Iterator<? extends Reference<T>> delegate = iterable.iterator();
|
/external/hamcrest/src/org/hamcrest/ |
Description.java | 36 Iterable<T> values);
43 Iterable<? extends SelfDescribing> values);
|
/frameworks/base/core/java/com/android/internal/util/ |
Predicates.java | 43 * defensively copy the iterable passed in, so future changes to it will alter 47 public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> components) { 64 * defensively copy the iterable passed in, so future changes to it will alter 68 public static <T> Predicate<T> or(Iterable<? extends Predicate<? super T>> components) { 81 private final Iterable<? extends Predicate<? super T>> components; 83 private AndPredicate(Iterable<? extends Predicate<? super T>> components) { 98 private final Iterable<? extends Predicate<? super T>> components; 100 private OrPredicate(Iterable<? extends Predicate<? super T>> components) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
StringUtils.java | 15 public static String joinAndBidiFormat(String delimiter, Iterable<String> tokens) { 25 String delimiter, Iterable<String> tokens, BidiFormatter bidiFormatter) {
|
/external/fonttools/Lib/fontTools/misc/ |
py23.py | 31 def strjoin(iterable): 32 return ''.join(iterable) 82 def bytesjoin(iterable): 83 return b''.join(tobytes(item) for item in iterable)
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
CollectionUtil.java | 34 public static <E> ArrayList<E> newArrayList(Iterable<E> iterable) { 36 for (E element : iterable) {
|
/external/chromium_org/tools/telemetry/telemetry/util/ |
path_set.py | 15 def __init__(self, iterable=None): 17 if iterable: 18 self |= iterable
|