Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 300 for v_size (0.15 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

      public void testSizes() {
        // not bothering testing all variations, since we know they share implementations
        assertTrue(Striped.lock(100).size() >= 100);
        assertTrue(Striped.lock(256).size() == 256);
        assertTrue(Striped.lazyWeakLock(100).size() >= 100);
        assertTrue(Striped.lazyWeakLock(256).size() == 256);
      }
    
      @AndroidIncompatible // Presumably GC doesn't trigger, despite our efforts.
      public void testWeakImplementations() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.keys).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.values).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.links).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 21 14:41:51 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

      private static final int[] positive = new int[ARRAY_SIZE];
      private static final int[] nonzero = new int[ARRAY_SIZE];
      private static final int[] ints = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(Integer.SIZE - 2).intValue();
          nonzero[i] = randomNonZeroBigInteger(Integer.SIZE - 2).intValue();
          ints[i] = RANDOM_SOURCE.nextInt();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

      private static final long[] positive = new long[ARRAY_SIZE];
      private static final long[] nonzero = new long[ARRAY_SIZE];
      private static final long[] longs = new long[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(Long.SIZE - 2).longValue();
          nonzero[i] = randomNonZeroBigInteger(Long.SIZE - 2).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectArrays.java

       */
      static <T extends @Nullable Object> T[] toArrayImpl(Collection<?> c, T[] array) {
        int size = c.size();
        if (array.length < size) {
          array = newArray(array, size);
        }
        fillArray(c, array);
        if (array.length > size) {
          @Nullable Object[] unsoundlyCovariantArray = array;
          unsoundlyCovariantArray[size] = null;
        }
        return array;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

      @BeforeExperiment
      void setUp() {
        checkArgument(size > 0, "empty collection not supported");
        Set<Integer> set = new LinkedHashSet<>(size);
    
        Random random = new Random();
        while (set.size() < size) {
          set.add(random.nextInt());
        }
        List<Integer> list = new ArrayList<>(set);
        inputOrder.arrange(list);
        input = ImmutableList.copyOf(list);
      }
    
      @Benchmark
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

    public class UnsignedLongsBenchmark {
      private static final int ARRAY_SIZE = 0x10000;
      private static final int ARRAY_MASK = 0x0ffff;
      private static final Random RANDOM_SOURCE = new Random(314159265358979L);
      private static final long[] longs = new long[ARRAY_SIZE];
      private static final long[] divisors = new long[ARRAY_SIZE];
      private static final String[] decimalStrings = new String[ARRAY_SIZE];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteStreams.java

        // When called at high frequency, boxing size generates too much garbage,
        // so avoid doing that if we can.
        if (size < 0) {
          throw new IllegalArgumentException(String.format("Invalid size: %s", size));
        }
        return newDataOutput(new ByteArrayOutputStream(size));
      }
    
      /**
       * Returns a new {@link ByteArrayDataOutput} instance which writes to the given {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals(Integer.MAX_VALUE, ms.headMultiset("b", CLOSED).size());
        assertEquals(Integer.MAX_VALUE, ms.headMultiset("a", CLOSED).size());
    
        assertEquals(3, ms.tailMultiset("c", CLOSED).size());
        assertEquals(Integer.MAX_VALUE, ms.tailMultiset("b", CLOSED).size());
        assertEquals(Integer.MAX_VALUE, ms.tailMultiset("a", CLOSED).size());
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

       * a size of 0 despite actually having content when read).
       *
       * <p>In either case, for mutable sources such as files, a subsequent read may return a different
       * number of bytes if the contents are changed.
       *
       * @throws IOException if an I/O error occurs while reading the size of this source
       */
      public long size() throws IOException {
    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)
Back to top