Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 768 for Array (0.02 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

        resetContainer();
      }
    
      /**
       * @return an array of the proper size with {@code null} inserted into the middle element.
       */
      protected E[] createArrayWithNullElement() {
        E[] array = createSamplesArray();
        array[getNullLocation()] = null;
        return array;
      }
    
      protected void initCollectionWithNullElement() {
        E[] array = createArrayWithNullElement();
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-01-18 02:54
    - 2.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      /**
       * @return an array of the proper size with {@code null} as the key of the middle element.
       */
      protected Entry<K, V>[] createArrayWithNullKey() {
        Entry<K, V>[] array = createSamplesArray();
        int nullKeyLocation = getNullLocation();
        Entry<K, V> oldEntry = array[nullKeyLocation];
        array[nullKeyLocation] = entry(null, oldEntry.getValue());
        return array;
      }
    
      protected V getValueForNullKey() {
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-01-18 02:54
    - 7.8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

        "fffe".decodeHex(),
        // UTF-32BE.
        "0000feff".decodeHex(),
      )
    
    /**
     * Returns an array containing only elements found in this array and also in [other]. The returned
     * elements are in the same order as in this.
     */
    internal fun Array<String>.intersect(
      other: Array<String>,
      comparator: Comparator<in String>,
    ): Array<String> {
      val result = mutableListOf<String>()
      for (a in this) {
        for (b in other) {
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-05 16:01
    - 10.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         * Asserts that the argument is neither <code>null</code> nor an empty array.
         *
         * @param argName
         *            The name of the argument that must not be {@code null} or an empty array.
         * @param argValue
         *            The value of the argument.
         * @throws EmptyArgumentException
         *             If the argument is <code>null</code> or an empty array.
         */
    Registered: 2025-05-24 08:58
    - Last Modified: 2025-05-10 01:32
    - 12.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/ImmutableIntArray.java

      private final int end; // exclusive
    
      private ImmutableIntArray(int[] array) {
        this(array, 0, array.length);
      }
    
      private ImmutableIntArray(int[] array, int start, int end) {
        this.array = array;
        this.start = start;
        this.end = end;
      }
    
      /** Returns the number of values in this array. */
      public int length() {
        return end - start;
      }
    
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-04-14 16:36
    - 21.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ObjectArrays.java

        T[] result = newArray(array, array.length + 1);
        result[0] = element;
        arraycopy(array, 0, result, 1, array.length);
        return result;
      }
    
      /**
       * Returns a new array that appends {@code element} to {@code array}.
       *
       * @param array the array of elements to prepend
       * @param element the element to append to the end
    Registered: 2025-05-30 12:43
    - Last Modified: 2024-12-22 03:38
    - 8.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Floats.java

        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
       * Reverses the elements of {@code array}. This is equivalent to {@code
       * Collections.reverse(Floats.asList(array))}, but is likely to be more efficient.
       *
       * @since 23.1
       */
      public static void reverse(float[] array) {
        checkNotNull(array);
        reverse(array, 0, array.length);
      }
    
      /**
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-04-14 16:36
    - 25.7K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureExtendedTrustManager.kt

      override fun getAcceptedIssuers(): Array<X509Certificate> = delegate.acceptedIssuers
    
      override fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
        socket: Socket,
      ) {
        if (socket.peerName() !in insecureHosts) {
          delegate.checkServerTrusted(chain, authType, socket)
        }
      }
    
      override fun checkServerTrusted(
        chain: Array<out X509Certificate>,
        authType: String,
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-10 11:15
    - 2.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Doubles.java

        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
       * Reverses the elements of {@code array}. This is equivalent to {@code
       * Collections.reverse(Doubles.asList(array))}, but is likely to be more efficient.
       *
       * @since 23.1
       */
      public static void reverse(double[] array) {
        checkNotNull(array);
        reverse(array, 0, array.length);
      }
    
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-04-14 16:36
    - 27.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        assertEquals(String[].class, array.getClass());
        assertThat(array).hasLength(2);
        assertNull(array[0]);
      }
    
      public void testNewArray_fromArray_ofArray() {
        String[][] array = ObjectArrays.newArray(new String[0][0], 1);
        assertEquals(String[][].class, array.getClass());
        assertThat(array).hasLength(1);
        assertNull(array[0]);
      }
    
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 17:27
    - 8.7K bytes
    - Viewed (0)
Back to top