Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Remark (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/ComparisonChain.java

     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/CommonObjectUtilitiesExplained#comparecompareto">{@code
     * ComparisonChain}</a>.
     *
     * @author Mark Davis
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ComparisonChain {
      private ComparisonChain() {}
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

        return get(key) != null;
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
        return values().contains(value);
      }
    
      // Overriding to mark it Nullable
      @Override
      @CheckForNull
      public abstract V get(@CheckForNull Object key);
    
      /**
       * {@inheritDoc}
       *
       * <p>See <a
    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)
Back to top