- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for octicons (0.28 sec)
-
guava-tests/test/com/google/common/io/TestWriter.java
/** @author Colin Decker */ public class TestWriter extends FilterWriter { private final TestOutputStream out; public TestWriter(TestOption... options) throws IOException { this(new TestOutputStream(ByteStreams.nullOutputStream(), options)); } public TestWriter(TestOutputStream out) { super(new OutputStreamWriter(checkNotNull(out), UTF_8)); this.out = out; } @Override
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestCharSink.java
* * @author Colin Decker */ public class TestCharSink extends CharSink implements TestStreamSupplier { private final TestByteSink byteSink; public TestCharSink(TestOption... options) { this.byteSink = new TestByteSink(options); } public String getString() { return new String(byteSink.getBytes(), UTF_8); } @Override public boolean wasStreamOpened() { return byteSink.wasStreamOpened();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/NullnessCasts.java
* * <p>Why <i>not</i> just add {@code SuppressWarnings}? The problem is that this method is * typically useful for {@code return} statements. That leaves the code with two options: Either * add the suppression to the whole method (which turns off checking for a large section of code), * or extract a variable, and put the suppression on that. However, a local variable typically
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 10 20:36:34 GMT 2022 - 3.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
for (int i = 0; i < reps; i++) { dummy ^= JOINER_ON_CHARACTER.join(components).length(); } return dummy; } /** * Mimics what the {@link Joiner} class does internally when no extra options like ignoring {@code * null} values are used. */ @Benchmark int joinerInlined(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { StringBuilder sb = new StringBuilder();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java
import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /** * A ScheduledExecutorService that executes all scheduled actions immediately in the calling thread. * * <p>See {@link TestingExecutors#sameThreadScheduledExecutor()} for a full list of constraints. * * @author John Sirois * @author Zach van Schouwen */ @GwtIncompatible
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Oct 06 00:47:57 GMT 2021 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestOutputStream.java
private final ImmutableSet<TestOption> options; private boolean closed; public TestOutputStream(OutputStream out, TestOption... options) throws IOException { this(out, Arrays.asList(options)); } public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException { super(checkNotNull(out)); this.options = ImmutableSet.copyOf(options); throwIf(OPEN_THROWS); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestByteSink.java
private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); private final ImmutableSet<TestOption> options; private boolean outputStreamOpened; private boolean outputStreamClosed; public TestByteSink(TestOption... options) { this.options = ImmutableSet.copyOf(options); } byte[] getBytes() { return bytes.toByteArray(); } @Override public boolean wasStreamOpened() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Sep 15 13:47:32 GMT 2016 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestReader.java
/** @author Colin Decker */ public class TestReader extends FilterReader { private final TestInputStream in; public TestReader(TestOption... options) throws IOException { this(new TestInputStream(new ByteArrayInputStream(new byte[10]), options)); } public TestReader(TestInputStream in) { super(new InputStreamReader(checkNotNull(in), UTF_8)); this.in = in; } public boolean closed() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
private enum DirectoryDeleteMethod { DELETE_DIRECTORY_CONTENTS { @Override public void delete(Path path, RecursiveDeleteOption... options) throws IOException { MoreFiles.deleteDirectoryContents(path, options); } @Override public void assertDeleteSucceeded(Path path) throws IOException { assertEquals(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 29 22:57:05 GMT 2024 - 27.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestOption.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.io; /** * Options controlling the behavior of sources/sinks/streams for testing. * * @author Colin Decker */ public enum TestOption { OPEN_THROWS, SKIP_THROWS, READ_THROWS, WRITE_THROWS, CLOSE_THROWS,
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Apr 08 16:34:30 GMT 2013 - 870 bytes - Viewed (0)