- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for Remark (0.15 sec)
-
android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertEquals(string, readFully(reader)); assertFullyRead(reader); // reset, skip, mark, then read the rest reader.reset(); assertEquals(5, reader.skip(5)); reader.mark(Integer.MAX_VALUE); assertEquals(string.substring(5), readFully(reader)); assertFullyRead(reader); // reset to the mark and then read the rest reader.reset(); assertEquals(string.substring(5), readFully(reader));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Java8Compatibility.java
static void clear(Buffer b) { b.clear(); } static void flip(Buffer b) { b.flip(); } static void limit(Buffer b, int limit) { b.limit(limit); } static void mark(Buffer b) { b.mark(); } static void position(Buffer b, int position) { b.position(position); } static void reset(Buffer b) { b.reset(); } private Java8Compatibility() {}
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 1.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ComparisonChain.java
* even when the result of the comparison is already known from previous {@code .compare} calls. * That can be expensive. * * @author Mark Davis * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault public abstract class ComparisonChain { private ComparisonChain() {}
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Sep 21 17:28:11 GMT 2022 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
// subtracting two nonnegative longs can't overflow // cmpRemToHalfDivisor has the same sign as compare(abs(rem), abs(q) / 2). if (cmpRemToHalfDivisor == 0) { // exactly on the half mark increment = (mode == HALF_UP || (mode == HALF_EVEN && (div & 1) != 0)); } else { increment = cmpRemToHalfDivisor > 0; // closer to the UP value } break; default:
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 44.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertEquals(string, readFully(reader)); assertFullyRead(reader); // reset, skip, mark, then read the rest reader.reset(); assertEquals(5, reader.skip(5)); reader.mark(Integer.MAX_VALUE); assertEquals(string.substring(5), readFully(reader)); assertFullyRead(reader); // reset to the mark and then read the rest reader.reset(); assertEquals(string.substring(5), readFully(reader));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSequenceReader.java
return true; } @Override public synchronized void mark(int readAheadLimit) throws IOException { checkArgument(readAheadLimit >= 0, "readAheadLimit (%s) may not be negative", readAheadLimit); checkOpen(); mark = pos; } @Override public synchronized void reset() throws IOException { checkOpen(); pos = mark; } @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CountingInputStreamTest.java
assertThat(expected).hasMessageThat().isEqualTo("Mark not set"); } public void testMarkNotSupported() { counter = new CountingInputStream(new UnmarkableInputStream()); IOException expected = assertThrows(IOException.class, () -> counter.reset()); assertThat(expected).hasMessageThat().isEqualTo("Mark not supported"); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
/** Swappable internal implementation of an ImmutableSet.Builder. */ private abstract static class SetBuilderImpl<E> { // The first `distinct` elements are non-null. // Since we can never access null elements, we don't mark this nullable. E[] dedupedElements; int distinct; @SuppressWarnings("unchecked") SetBuilderImpl(int expectedCapacity) { this.dedupedElements = (E[]) new Object[expectedCapacity];
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/ImmutableMap.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 41.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFuture.java
* should be rare. * <li>The waiters list should be very short. * </ul> */ private void removeWaiter(Waiter node) { node.thread = null; // mark as 'deleted' restart: while (true) { Waiter pred = null; Waiter curr = waiters; if (curr == Waiter.TOMBSTONE) { return; // give up if someone is calling complete }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0)