- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 78 for source (0.23 sec)
-
guava-tests/test/com/google/common/collect/StreamsTest.java
Stream.<@Nullable Object>of((Object) null).flatMap(unused -> Stream.of("a", "b", "c"))); } private void testMapWithIndex_closeIsPropagated(Stream<String> source) { AtomicInteger stringsCloseCount = new AtomicInteger(); Stream<String> strings = source.onClose(stringsCloseCount::incrementAndGet); Stream<String> withIndex = Streams.mapWithIndex(strings, (str, i) -> str + ":" + i); withIndex.close();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
* When multiple elements are equivalent according to {@link Comparable#compareTo}, only the first * one specified is included. * * @throws NullPointerException if any element is null * @since 3.0 (source-compatible since 2.0) */ @SuppressWarnings("unchecked") public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 36.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
@GwtIncompatible @J2ObjCIncompatible @ElementTypesAreNonnullByDefault public final class FileBackedOutputStream extends OutputStream { private final int fileThreshold; private final boolean resetOnFinalize; private final ByteSource source; @GuardedBy("this") private OutputStream out; @GuardedBy("this") @CheckForNull private MemoryOutput memory; @GuardedBy("this") @CheckForNull private File file;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
public void testPartition_badSize() { List<Integer> source = Collections.singletonList(1); try { Lists.partition(source, 0); fail(); } catch (IllegalArgumentException expected) { } } public void testPartition_empty() { List<Integer> source = Collections.emptyList(); List<List<Integer>> partitions = Lists.partition(source, 1); assertTrue(partitions.isEmpty());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
Iterable<Integer> source = Collections.singleton(1); try { Iterables.partition(source, 0); fail(); } catch (IllegalArgumentException expected) { } } public void testPartition_empty() { Iterable<Integer> source = Collections.emptySet(); Iterable<List<Integer>> partitions = Iterables.partition(source, 1); assertTrue(Iterables.isEmpty(partitions));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 47.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterator<Integer> source = singletonIterator(1); try { Iterators.partition(source, 0); fail(); } catch (IllegalArgumentException expected) { } } public void testPartition_empty() { Iterator<Integer> source = Iterators.emptyIterator(); Iterator<List<Integer>> partitions = Iterators.partition(source, 1); assertFalse(partitions.hasNext()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 56.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
* the first are ignored. * * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 6}. * * @since 3.0 (source-compatible since 2.0) */ @SafeVarargs // For Eclipse. For internal javac we have disabled this pointless type of warning. public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 35.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashMultiset.java
super(distinctElements); } @Override ObjectCountHashMap<E> newBackingMap(int distinctElements) { return new ObjectCountHashMap<>(distinctElements); } @GwtIncompatible // Not needed in emulated source. @J2ktIncompatible private static final long serialVersionUID = 0;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 2.6K bytes - Viewed (0) -
android/guava/pom.xml
XML - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 11 16:37:45 GMT 2024 - 8.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Platform.java
* likewise not type-checked)? Could our single caller do something different? */ @SuppressWarnings({"nullness", "unchecked"}) static <T extends @Nullable Object> T[] copy(Object[] source, int from, int to, T[] arrayOfType) { return Arrays.copyOfRange(source, from, to, (Class<? extends T[]>) arrayOfType.getClass()); } /** * Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 4.9K bytes - Viewed (0)