Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,161 for marras (0.17 sec)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            int[] array = new int[RANDOM.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
            builder.addAll(ImmutableIntArray.copyOf(array));
          }
        },
        ADD_LARGER_ARRAY {
          @Override
          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            int[] array = new int[RANDOM.nextInt(200) + 200];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        }
      }
    
      protected E[] createSamplesArray() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        getSampleElements().toArray(array);
        return array;
      }
    
      protected E[] createOrderedArray() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        getOrderedElements().toArray(array);
        return array;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSetFloodingTest.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Arrays;
    import java.util.List;
    import java.util.Set;
    
    @GwtIncompatible
    public class ImmutableSetFloodingTest extends AbstractHashFloodingTest<Set<Object>> {
      public ImmutableSetFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ReaderInputStream.java

        // Possibilities:
        // 1) array has space available on right-hand side (between limit and capacity)
        // 2) array has space available on left-hand side (before position)
        // 3) array has no space available
        //
        // In case 2 we shift the existing chars to the left, and in case 3 we create a bigger
        // array, then they both become case 1.
    
        if (availableCapacity(charBuffer) == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

        }
        return total;
      }
    
      /** Max array length on JVM. */
      private static final int MAX_ARRAY_LEN = Integer.MAX_VALUE - 8;
    
      /** Large enough to never need to expand, given the geometric progression of buffer sizes. */
      private static final int TO_BYTE_ARRAY_DEQUE_SIZE = 20;
    
      /**
       * Returns a byte array containing the bytes from the buffers already in {@code bufs} (which have
    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)
  6. android/guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      /** Returns whether arrays need to be allocated. */
      @VisibleForTesting
      boolean needsAllocArrays() {
        return table == null;
      }
    
      /** Handle lazy allocation of arrays. */
      @CanIgnoreReturnValue
      int allocArrays() {
        Preconditions.checkState(needsAllocArrays(), "Arrays already allocated");
    
        int expectedSize = metadata;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

    import java.util.Arrays;
    import java.util.List;
    import java.util.Set;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Tests for CompactLinkedHashSet.
     *
     * @author Dimitris Andreou
     */
    @GwtIncompatible // java.util.Arrays#copyOf(Object[], int), java.lang.reflect.Array
    public class CompactLinkedHashSetTest extends TestCase {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Oct 24 18:57:48 GMT 2019
    - 3.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      }
    
      @JvmStatic
      fun repeat(
        c: Char,
        count: Int,
      ): String {
        val array = CharArray(count)
        Arrays.fill(array, c)
        return String(array)
      }
    
      /**
       * Okio buffers are internally implemented as a linked list of arrays. Usually this implementation
       * detail is invisible to the caller, but subtle use of certain APIs may depend on these internal
       * structures.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testLeastOfIterableLargeK() {
        List<Integer> list = Arrays.asList(4, 2, 3, 5, 1);
        assertEquals(
            Arrays.asList(1, 2, 3, 4, 5), Ordering.<Integer>natural().leastOf(list, Integer.MAX_VALUE));
      }
    
      public void testLeastOfIteratorLargeK() {
        List<Integer> list = Arrays.asList(4, 2, 3, 5, 1);
        assertEquals(
            Arrays.asList(1, 2, 3, 4, 5),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testLeastOfIterableLargeK() {
        List<Integer> list = Arrays.asList(4, 2, 3, 5, 1);
        assertEquals(
            Arrays.asList(1, 2, 3, 4, 5), Ordering.<Integer>natural().leastOf(list, Integer.MAX_VALUE));
      }
    
      public void testLeastOfIteratorLargeK() {
        List<Integer> list = Arrays.asList(4, 2, 3, 5, 1);
        assertEquals(
            Arrays.asList(1, 2, 3, 4, 5),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
Back to top