Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 65 for clone (0.25 sec)

  1. guava/src/com/google/common/collect/MapMakerInternalMap.java

                    tailIndex = newIndex;
                    tail = e;
                  }
                }
                newTable.set(tailIndex, tail);
    
                // Clone nodes leading up to the tail.
                for (E e = head; e != tail; e = e.getNext()) {
                  int newIndex = e.getHash() & newMask;
                  E newNext = newTable.get(newIndex);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testNullCloseable() throws IOException {
        Closer closer = Closer.create();
        closer.register(null);
        closer.close();
      }
    
      /**
       * Asserts that an exception was thrown when trying to close each of the given throwables and that
       * each such exception was suppressed because of the given thrown exception.
       */
      private void assertSuppressed(Suppression... expected) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * @since 3.0
       */
      public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(E[] elements) {
        return construct(Ordering.natural(), elements.length, elements.clone());
      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by their natural ordering.
       * When multiple elements are equivalent according to {@code compareTo()}, only the first one
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Sets.java

                  bits.set(0, bitToFlip - firstSetBit - 1);
                  bits.clear(bitToFlip - firstSetBit - 1, bitToFlip);
                  bits.set(bitToFlip);
                }
                final BitSet copy = (BitSet) bits.clone();
                return new AbstractSet<E>() {
                  @Override
                  public boolean contains(@CheckForNull Object o) {
                    Integer i = index.get(o);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/FileBackedOutputStream.java

        }
      }
    
      /**
       * Calls {@link #close} if not already closed, and then resets this object back to its initial
       * state, for reuse. If data was buffered to a file, it will be deleted.
       *
       * @throws IOException if an I/O error occurred while deleting the file buffer
       */
      public synchronized void reset() throws IOException {
        try {
          close();
        } finally {
          if (memory == null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingMapEntry.java

     *
     * <p><b>Warning:</b> The methods of {@code ForwardingMapEntry} forward <i>indiscriminately</i> to
     * the methods of the delegate. For example, overriding {@link #getValue} alone <i>will not</i>
     * change the behavior of {@link #equals}, which can lead to unexpected behavior. In this case, you
     * should override {@code equals} as well, either providing your own implementation, or delegating
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Files.java

            return ByteStreams.toByteArray(in, in.getChannel().size());
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        }
    
        @Override
        public String toString() {
          return "Files.asByteSource(" + file + ")";
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      }
    
      /** Returns the index of the max element. */
      private int getMaxElementIndex() {
        switch (size) {
          case 1:
            return 0; // The lone element in the queue is the maximum.
          case 2:
            return 1; // The lone element in the maxHeap is the maximum.
          default:
            // The max element must sit on the first level of the maxHeap. It is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            Resources.copy(ClassPathTest.class.getResource(entry), jarOut);
            jarOut.closeEntry();
          }
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      private static Manifest manifest(String content) throws IOException {
        InputStream in = new ByteArrayInputStream(content.getBytes(US_ASCII));
        Manifest manifest = new Manifest();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 26 14:02:27 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
Back to top