Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for clone (0.16 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

                    tailIndex = newIndex;
                    tail = e;
                  }
                }
                newTable.set(tailIndex, tail);
    
                // Clone nodes leading up to the tail.
                for (ReferenceEntry<K, V> e = head; e != tail; e = e.getNext()) {
                  int newIndex = e.getHash() & newMask;
                  ReferenceEntry<K, V> newNext = newTable.get(newIndex);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      private static AssertionError newAssertionError(String message, Throwable cause) {
        AssertionError e = new AssertionError(message);
        e.initCause(cause);
        return e;
      }
    
      // catchingAsync tests cloned from the old withFallback tests:
    
      public void testCatchingAsync_inputDoesNotRaiseException() throws Exception {
        AsyncFunction<Throwable, Integer> fallback = unexpectedAsyncFunction();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      private static AssertionError newAssertionError(String message, Throwable cause) {
        AssertionError e = new AssertionError(message);
        e.initCause(cause);
        return e;
      }
    
      // catchingAsync tests cloned from the old withFallback tests:
    
      public void testCatchingAsync_inputDoesNotRaiseException() throws Exception {
        AsyncFunction<Throwable, Integer> fallback = unexpectedAsyncFunction();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        Object valueThree = new Object();
        int hashThree = map.hash(keyThree);
        DummyEntry<Object, Object> entryThree =
            createDummyEntry(keyThree, hashThree, valueThree, entryTwo);
    
        // alone
        assertNull(segment.removeEntryFromChain(entryOne, entryOne));
    
        // head
        assertSame(entryOne, segment.removeEntryFromChain(entryTwo, entryTwo));
    
        // middle
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        Object valueThree = new Object();
        int hashThree = map.hash(keyThree);
        DummyEntry<Object, Object> entryThree =
            createDummyEntry(keyThree, hashThree, valueThree, entryTwo);
    
        // alone
        assertNull(segment.removeEntryFromChain(entryOne, entryOne));
    
        // head
        assertSame(entryOne, segment.removeEntryFromChain(entryTwo, entryTwo));
    
        // middle
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/LocalCache.java

                    tailIndex = newIndex;
                    tail = e;
                  }
                }
                newTable.set(tailIndex, tail);
    
                // Clone nodes leading up to the tail.
                for (ReferenceEntry<K, V> e = head; e != tail; e = e.getNext()) {
                  int newIndex = e.getHash() & newMask;
                  ReferenceEntry<K, V> newNext = newTable.get(newIndex);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       */
      public FluentFuture<V> finishToFuture() {
        if (compareAndUpdateState(OPEN, WILL_CLOSE)) {
          logger.get().log(FINER, "will close {0}", this);
          future.addListener(
              new Runnable() {
                @Override
                public void run() {
                  checkAndUpdateState(WILL_CLOSE, CLOSING);
                  close();
                  checkAndUpdateState(CLOSING, CLOSED);
                }
              },
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
Back to top