- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 70 for caption (0.35 sec)
-
guava-tests/test/com/google/common/io/CharSinkTest.java
assertEquals("foo!bar!baz!", sink.getString()); } public void testClosesOnErrors_copyingFromCharSourceThatThrows() { for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) { TestCharSource failSource = new TestCharSource(STRING, option); TestCharSink okSink = new TestCharSink(); assertThrows(IOException.class, () -> failSource.copyTo(okSink));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestOutputStream.java
} @Override public void close() throws IOException { closed = true; super.close(); throwIf(CLOSE_THROWS); } private void throwIf(TestOption option) throws IOException { throwIf(options.contains(option)); } private static void throwIf(boolean condition) throws IOException { if (condition) { throw new IOException(); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestInputStream.java
} @Override public void close() throws IOException { closed = true; throwIf(CLOSE_THROWS); in.close(); } private void throwIf(TestOption option) throws IOException { throwIf(options.contains(option)); } private static void throwIf(boolean condition) throws IOException { if (condition) { throw new IOException(); } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestInputStream.java
} @Override public void close() throws IOException { closed = true; throwIf(CLOSE_THROWS); in.close(); } private void throwIf(TestOption option) throws IOException { throwIf(options.contains(option)); } private static void throwIf(boolean condition) throws IOException { if (condition) { throw new IOException(); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTest.java
} public void testClosesOnErrors_copyingToCharSinkThatThrows() { for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) { TestCharSource okSource = new TestCharSource(STRING); assertThrows(IOException.class, () -> okSource.copyTo(new TestCharSink(option))); // ensure reader was closed IF it was opened (depends on implementation whether or not it's
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 12K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashMap.java
} @Override public void forEach(Consumer<? super K> action) { checkNotNull(action); Map<K, V> delegate = delegateOrNull(); if (delegate != null) { delegate.keySet().forEach(action); } else { for (int i = firstEntryIndex(); i >= 0; i = getSuccessor(i)) { action.accept(key(i)); } } } }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 39.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableEnumMap.java
return CollectSpliterators.map(delegate.entrySet().spliterator(), Maps::unmodifiableEntry); } @Override public void forEach(BiConsumer<? super K, ? super V> action) { delegate.forEach(action); } @Override boolean isPartialView() { return false; } // All callers of the constructor are restricted to <K extends Enum<K>>. @Override
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Mar 06 16:06:58 GMT 2023 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashSet.java
} @Override public void forEach(Consumer<? super E> action) { checkNotNull(action); Set<E> delegate = delegateOrNull(); if (delegate != null) { delegate.forEach(action); } else { for (int i = firstEntryIndex(); i >= 0; i = getSuccessor(i)) { action.accept(element(i)); } } } @Override public int size() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Feb 05 21:38:59 GMT 2024 - 24.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
}, Spliterator.SIZED, size()); } @Override public void forEach(BiConsumer<? super K, ? super V> action) { checkNotNull(action); map.forEach( (key, valueCollection) -> valueCollection.forEach(value -> action.accept(key, value))); } @Override Map<K, Collection<V>> createAsMap() { return new AsMap(map); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 48K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(type::isInstance).map(type::cast)}. * This does perform a little more work than necessary, so another option is to insert an * unchecked cast at some later point: * * <pre> * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result =
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 35.7K bytes - Viewed (0)