Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 56 for external (0.18 sec)

  1. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThat(out.toByteArray()).isEqualTo(expected);
      }
    
    
      public void testCopyFileChannel() throws IOException {
        final int chunkSize = 14407; // Random prime, unlikely to match any internal chunk size
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

          // implementation because:
          // 1. the string constructor can avoid an extra copy most of the time by correctly sizing the
          //    internal char array (hard to avoid using StringBuilder)
          // 2. we avoid extra copies into temporary buffers altogether
          // The downside is that this will cause us to store the file bytes in memory twice for a short
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MapMaker.java

      }
    
      Equivalence<Object> getKeyEquivalence() {
        return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence());
      }
    
      /**
       * Sets the minimum total size for the internal hash tables. For example, if the initial capacity
       * is {@code 60}, and the concurrency level is {@code 8}, then eight segments are created, each
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/InternetDomainName.java

       * in <a href="http://www.ietf.org/rfc/rfc2181.txt">RFC 2181</a> part 11 with the fact that the
       * encoding of each part occupies at least two bytes (dot plus label externally, length byte plus
       * label internally). Thus, if all labels have the minimum size of one byte, 127 of them will fit.
       */
      private static final int MAX_PARTS = 127;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        Iterables.addAll(multiset, elements);
        return multiset;
      }
    
      /**
       * Creates a new, empty {@code ConcurrentHashMultiset} using {@code countMap} as the internal
       * backing map.
       *
       * <p>This instance will assume ownership of {@code countMap}, and other code should not maintain
       * references to the map or modify it in any way.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/GeneralRange.java

    import java.io.Serializable;
    import java.util.Comparator;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A generalized interval on any ordering, for internal use. Supports {@code null}. Unlike {@link
     * Range}, this allows the use of an arbitrary comparator. This is designed for use in the
     * implementation of subcollections of sorted collection types.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeBasedTable.java

     *
     * <p>Note that this implementation is not synchronized. If multiple threads access this table
     * concurrently and one of the threads modifies the table, it must be synchronized externally.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#table">{@code Table}</a>.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 7.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Cut.java

    import com.google.common.primitives.Booleans;
    import java.io.Serializable;
    import java.util.NoSuchElementException;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation detail for the internal structure of {@link Range} instances. Represents a unique
     * way of "cutting" a "number line" (actually of instances of type {@code C}, not necessarily
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       */
      private static char[] growBuffer(char[] dest, int index, int size) {
        if (size < 0) { // overflow - should be OutOfMemoryError but GWT/j2cl don't support it
          throw new AssertionError("Cannot increase internal buffer any further");
        }
        char[] copy = new char[size];
        if (index > 0) {
          System.arraycopy(dest, 0, copy, 0, index);
        }
        return copy;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 13.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheTesting.java

        for (Segment<?, ?> segment : map.segments) {
          totalSize += segment.maxSegmentWeight;
        }
        return totalSize;
      }
    
      /**
       * Peeks into the cache's internals to check its internal consistency. Verifies that each
       * segment's count matches its #elements (after cleanup), each segment is unlocked, each entry
       * contains a non-null key and value, and the eviction and expiration queues are consistent (see
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
Back to top