Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 648 for clears (0.06 sec)

  1. guava/src/com/google/common/graph/MapIteratorCache.java

      }
    
      @CanIgnoreReturnValue
      @CheckForNull
      final V remove(Object key) {
        checkNotNull(key);
        clearCache();
        return backingMap.remove(key);
      }
    
      final void clear() {
        clearCache();
        backingMap.clear();
      }
    
      @CheckForNull
      V get(Object key) {
        checkNotNull(key);
        V value = getIfCached(key);
        // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     * </ul>
     *
     * <p>Because of this situation, any public method accepting an iterable should invoke the {@code
     * iterator} method only once, and should be tested using this class. Exceptions to this rule should
     * be clearly documented.
     *
     * <p>Note that although your APIs should be liberal in what they accept, your methods which
     * <i>return</i> iterables should make every attempt to return ones of the robust variety.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

                synchronized (result.lock) {
                  assertEquals(
                      "The test should have cleared the stack (say, by virtue of running runTearDown)",
                      0,
                      result.stack.size());
                }
              }
            });
        return result;
      }
    
      private static final class ThrowingTearDown implements TearDown {
    
        private final String id;
        boolean ran = false;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 10:19:29 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/AbstractByteHasher.java

      @CanIgnoreReturnValue
      private Hasher update(int bytes) {
        try {
          update(scratch.array(), 0, bytes);
        } finally {
          Java8Compatibility.clear(scratch);
        }
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putByte(byte b) {
        update(b);
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

        StringBuilder builder = new StringBuilder("abc");
        List<Character> chars = charactersOf(builder);
        assertEquals(asList('a', 'b', 'c'), chars);
        builder.append("def");
        assertEquals(asList('a', 'b', 'c', 'd', 'e', 'f'), chars);
        builder.deleteCharAt(5);
        assertEquals(asList('a', 'b', 'c', 'd', 'e'), chars);
      }
    
      public void testNewArrayListEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ListsTest.java

        StringBuilder builder = new StringBuilder("abc");
        List<Character> chars = charactersOf(builder);
        assertEquals(asList('a', 'b', 'c'), chars);
        builder.append("def");
        assertEquals(asList('a', 'b', 'c', 'd', 'e', 'f'), chars);
        builder.deleteCharAt(5);
        assertEquals(asList('a', 'b', 'c', 'd', 'e'), chars);
      }
    
      public void testNewArrayListEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

                synchronized (result.lock) {
                  assertEquals(
                      "The test should have cleared the stack (say, by virtue of running runTearDown)",
                      0,
                      result.stack.size());
                }
              }
            });
        return result;
      }
    
      private static final class ThrowingTearDown implements TearDown {
    
        private final String id;
        boolean ran = false;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 10:19:29 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. docs/en/docs/js/termynal.js

         * @returns {string} - String of attributes.
         */
        _attributes(line) {
            let attrs = '';
            for (let prop in line) {
                // Custom add class
                if (prop === 'class') {
                    attrs += ` class=${line[prop]} `
                    continue
                }
                if (prop === 'type') {
                    attrs += `${this.pfx}="${line[prop]}" `
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

          public int read(char[] cbuf, int off, int len) throws IOException {
            // if a buffer isn't being cleared correctly, this method will eventually start being called
            // with a len of 0 forever
            if (len <= 0) {
              fail("read called with a len of " + len);
            }
            // read fewer than the max number of chars to read
            // shouldn't be a problem unless the buffer is shrinking each call
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/CharStreamsTest.java

          public int read(char[] cbuf, int off, int len) throws IOException {
            // if a buffer isn't being cleared correctly, this method will eventually start being called
            // with a len of 0 forever
            if (len <= 0) {
              fail("read called with a len of " + len);
            }
            // read fewer than the max number of chars to read
            // shouldn't be a problem unless the buffer is shrinking each call
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top