- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 427 for Iterable (0.32 sec)
-
guava/src/com/google/common/collect/EnumMultiset.java
* EnumMultiset#create(Iterable)}, this method does not produce an exception on an empty iterable. * * @since 14.0 */ public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements, Class<E> type) { EnumMultiset<E> result = create(type); Iterables.addAll(result, elements); return result; } private transient Class<E> type;
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetsTest.java
public void testNewTreeSetFromIterable() { TreeSet<Integer> set = Sets.newTreeSet(SOME_ITERABLE); verifySortedSetContents(set, SOME_ITERABLE, null); } public void testNewTreeSetFromIterableDerived() { Iterable<Derived> iterable = Arrays.asList(new Derived("foo"), new Derived("bar")); TreeSet<Derived> set = Sets.newTreeSet(iterable); assertThat(set).containsExactly(new Derived("bar"), new Derived("foo")).inOrder(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 47.9K bytes - Viewed (1) -
src/main/java/org/codelibs/core/collection/SingleValueIterator.java
/** * for each構文で使用するために{@link SingleValueIterator}をラップした{@link Iterable}を返します。 * * @param <E> * 要素の型 * @param value * 反復子が返す唯一の値 * @return {@link SingleValueIterator}をラップした{@link Iterable} */ public static <E> Iterable<E> iterable(final E value) { return () -> new SingleValueIterator<>(value); } /**
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Joiner.java
@Nullable Object... rest) throws IOException { return appendTo(appendable, iterable(first, second, rest)); } /** * Appends the string representation of each of {@code parts}, using the previously configured * separator between each, to {@code builder}. Identical to {@link #appendTo(Appendable, * Iterable)}, except that it does not throw {@link IOException}. */ @CanIgnoreReturnValue
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 18.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {}; ImmutableTypeToInstanceMap<Iterable<?>[]> map = ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build(); assertEquals(1, map.size()); // Redundant cast works around a javac bug. assertThat((Iterable<?>[]) map.getInstance(type)).asList().containsExactly(array[0]); } public void testWildcardType() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 6.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Comparators.java
* always true when the iterable has fewer than two elements. */ public static <T extends @Nullable Object> boolean isInOrder( Iterable<? extends T> iterable, Comparator<T> comparator) { checkNotNull(comparator); Iterator<? extends T> it = iterable.iterator(); if (it.hasNext()) { T prev = it.next(); while (it.hasNext()) { T next = it.next(); if (comparator.compare(prev, next) > 0) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 10.2K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Result.java
private final boolean errors; private final T value; private final Iterable<? extends ModelProblem> problems; private Result(boolean errors, T model, Iterable<? extends ModelProblem> problems) { this.errors = errors; this.value = model; this.problems = problems; } public Iterable<? extends ModelProblem> getProblems() { return problems; }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java
} public void testDoubler() { Iterable<Integer> doubled = new Iterable<Integer>() { @Override public Iterator<Integer> iterator() { return newDoubler(2, 32); } }; assertThat(doubled).containsExactly(2, 4, 8, 16, 32).inOrder(); } public void testSampleCode() { Iterable<Integer> actual = new Iterable<Integer>() { @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 17:19:08 GMT 2024 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
@Nullable Object... rest) throws IOException { return appendTo(appendable, iterable(first, second, rest)); } /** * Appends the string representation of each of {@code parts}, using the previously configured * separator between each, to {@code builder}. Identical to {@link #appendTo(Appendable, * Iterable)}, except that it does not throw {@link IOException}. */ @CanIgnoreReturnValue
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 18.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Collections2.java
* original iterable. * @throws NullPointerException if the specified iterable is null or has any null elements. * @since 12.0 */ public static <E extends Comparable<? super E>> Collection<List<E>> orderedPermutations( Iterable<E> elements) { return orderedPermutations(elements, Ordering.natural()); } /** * Returns a {@link Collection} of all the permutations of the specified {@link Iterable} using
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 23.1K bytes - Viewed (0)