HomeSort by relevance Sort by last modified time
    Searched refs:iterable (Results 1 - 25 of 26) sorted by null

1 2

  /external/guava/src/com/google/common/collect/
Iterables.java 45 * of type {@code Iterable}. Except as noted, each method has a corresponding
56 /** Returns an unmodifiable view of {@code iterable}. */
57 public static <T> Iterable<T> unmodifiableIterable(final Iterable<T> iterable)
59 checkNotNull(iterable);
60 return new Iterable<T>() {
62 return Iterators.unmodifiableIterator(iterable.iterator());
65 return iterable.toString();
72 * Returns the number of elements in {@code iterable}
    [all...]
ReverseNaturalOrdering.java 56 @Override public <E extends Comparable> E min(Iterable<E> iterable) {
57 return NaturalOrdering.INSTANCE.max(iterable);
68 @Override public <E extends Comparable> E max(Iterable<E> iterable) {
69 return NaturalOrdering.INSTANCE.min(iterable);
ReverseOrdering.java 54 @Override public <E extends T> E min(Iterable<E> iterable) {
55 return forwardOrder.max(iterable);
66 @Override public <E extends T> E max(Iterable<E> iterable) {
67 return forwardOrder.min(iterable);
Ordering.java 264 * the {@code comparators} iterable at the time it was provided to this
277 Iterable<? extends Comparator<? super T>> comparators) {
297 * is equivalent to one created using {@link Ordering#compound(Iterable)} on
334 * order". If the end of one iterable is reached, but not the other, the
335 * shorter iterable is considered to be less than the longer one. For example,
347 // Ordering<Iterable<String>> o =
349 public <S extends T> Ordering<Iterable<S>> lexicographical() {
352 * handling not just {@code Iterable<S>} instances, but also any {@code
353 * Iterable<? extends S>}. However, the need for this comes up so rarely
395 * Returns a copy of the given iterable sorted by this ordering. The input i
    [all...]
ComparatorOrdering.java 48 @Override public <E extends T> List<E> sortedCopy(Iterable<E> iterable) {
49 List<E> list = Lists.newArrayList(iterable);
NaturalOrdering.java 58 Iterable<E> iterable) {
59 List<E> list = Lists.newArrayList(iterable);
Collections2.java 71 * Converts an iterable into a collection. If the iterable is already a
73 * created with the contents of the iterable in the same iteration order.
75 static <E> Collection<E> toCollection(Iterable<E> iterable) {
76 return (iterable instanceof Collection)
77 ? (Collection<E>) iterable : Lists.newArrayList(iterable);
ImmutableSortedSet.java 272 Iterable<? extends E> elements) {
313 Comparator<? super E> comparator, Iterable<? extends E> elements) {
336 * {@link #copyOf(Iterable)}, which always uses the natural ordering of the
354 Comparator<? super E> comparator, Iterable<? extends E> elements,
383 private static <T> Object[] newObjectArray(Iterable<T> iterable) {
384 Collection<T> collection = (iterable instanceof Collection)
385 ? (Collection<T>) iterable : Lists.newArrayList(iterable);
413 Iterable<?> elements, Comparator<?> comparator)
    [all...]
ImmutableSet.java 179 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
253 Iterable<? extends E> iterable, int count) {
254 // count is always the (nonzero) number of elements in the iterable
262 for (E element : iterable) {
281 // The iterable contained only duplicates of the same element.
284 // Resize the table when the iterable includes too many duplicates.
507 * @param elements the {@code Iterable} to add to the {@code ImmutableSet}
512 @Override public Builder<E> addAll(Iterable<? extends E> elements) {
Iterators.java 44 * {@link Iterable}-based method in the {@link Iterables} class.
67 * <p>The {@link Iterable} equivalent of this method is {@link
361 * iterable}.
365 * element, which is no longer in {@code iterable}. The iterator's
366 * {@code hasNext()} method returns {@code true} until {@code iterable} is
373 public static <T> Iterator<T> cycle(final Iterable<T> iterable) {
374 checkNotNull(iterable);
381 iterator = iterable.iterator();
559 * iterator} divided into partitions (the final iterable may hav
    [all...]
Sets.java 96 Iterable<E> elements) {
116 * exception on an empty collection, and it may be called on any iterable, not
119 public static <E extends Enum<E>> EnumSet<E> newEnumSet(Iterable<E> iterable,
125 * iterable is null but elementType is not, noneOf() will throw a
131 * elementType, the problem argument, is harmful, while checking iterable,
134 checkNotNull(iterable);
136 Iterables.addAll(set, iterable);
195 * non-null, use {@link ImmutableSet#copyOf(Iterable)} instead.
198 * {@link #newEnumSet(Iterable, Class)} instead
    [all...]
  /external/webkit/WebKitTools/Scripts/webkitpy/commands/
openbugs.py 51 def _find_bugs_in_iterable(self, iterable):
52 return sum([self._find_bugs_in_string(string) for string in iterable], [])
  /frameworks/base/test-runner/src/android/test/
MoreAsserts.java 319 String message, Iterable<?> actual, Object... expected) {
328 * Variant of assertContentsInOrder(String, Iterable<?>, Object...)
332 Iterable<?> actual, Object... expected) {
340 public static void assertContentsInAnyOrder(String message, Iterable<?> actual,
359 * Variant of assertContentsInAnyOrder(String, Iterable<?>, Object...)
362 public static void assertContentsInAnyOrder(Iterable<?> actual, Object... expected) {
367 * Asserts that {@code iterable} is empty.
369 public static void assertEmpty(String message, Iterable<?> iterable) {
370 if (iterable.iterator().hasNext())
    [all...]
  /external/guava/src/com/google/common/base/
Joiner.java 33 * Iterable}, varargs or even a {@link Map}) with a separator. It either
83 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts)
113 return appendTo(appendable, iterable(first, second, rest));
119 * to {@link #appendTo(Appendable, Iterable)}, except that it does not throw
122 public final StringBuilder appendTo(StringBuilder builder, Iterable<?> parts)
135 * to {@link #appendTo(Appendable, Iterable)}, except that it does not throw
149 return appendTo(builder, iterable(first, second, rest));
156 public final String join(Iterable<?> parts) {
174 return join(iterable(first, second, rest));
205 A appendable, Iterable<?> parts) throws IOException
    [all...]
Predicates.java 96 * predicate is found. It defensively copies the iterable passed in, so future
102 Iterable<? extends Predicate<? super T>> components) {
135 * true predicate is found. It defensively copies the iterable passed in, so
141 Iterable<? extends Predicate<? super T>> components) {
186 * <p>If you want to filter an {@code Iterable} to narrow its type, consider
187 * using {@link com.google.common.collect.Iterables#filter(Iterable, Class)}
277 /** @see Predicates#and(Iterable) */
280 private final Iterable<? extends Predicate<? super T>> components;
282 private AndPredicate(Iterable<? extends Predicate<? super T>> components) {
313 /** @see Predicates#or(Iterable) */
    [all...]
  /external/webkit/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/
test_expectations.py 330 iterable = [x + "\n" for x in
334 if iterable[-1] == "\n":
335 return iterable[:-1]
336 return iterable
606 """For each test in an expectations iterable, generate the
    [all...]
  /external/webkit/SunSpider/tests/parse-only/
prototype-1.6.0.3.js 812 function $A(iterable) {
813 if (!iterable) return [];
814 if (iterable.toArray) return iterable.toArray();
815 var length = iterable.length || 0, results = new Array(length);
816 while (length--) results[length] = iterable[length];
821 $A = function(iterable) {
822 if (!iterable) return [];
826 if (!(typeof iterable === 'function' && typeof iterable.length ==
    [all...]
concat-jquery-mootools-prototype.js     [all...]
mootools-1.2.2-core-nc.js 156 function $A(iterable){
157 if (iterable.item){
158 var l = iterable.length, array = new Array(l);
159 while (l--) array[l] = iterable[l];
162 return Array.prototype.slice.call(iterable);
185 function $each(iterable, fn, bind){
186 var type = $type(iterable);
187 ((type == 'arguments' || type == 'collection' || type == 'array') ? Array : Hash).each(iterable, fn, bind);
    [all...]
  /prebuilt/common/netbeans-visual/
org-openide-util.jar 
  /prebuilt/common/ecj/
ecj.jar 
  /external/webkit/SunSpider/tests/sunspider-0.9/
string-unpack-code.js     [all...]
  /external/webkit/SunSpider/tests/sunspider-0.9.1/
string-unpack-code.js     [all...]
  /prebuilt/sdk/4/
android.jar 
  /prebuilt/sdk/5/
android.jar 

Completed in 204 milliseconds

1 2