Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 768 for Array (0.01 sec)

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

        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsInOrder(getOrderedElements(), array);
      }
    
      public void testToArray_rightSizedArrayOfObject() {
        Object[] array = new Object[getNumElements()];
        assertSame(
            "toArray(sameSizeObject[]) should return the given array",
            array,
    Registered: 2025-05-30 12:43
    - Last Modified: 2024-12-19 20:54
    - 8.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Ints.java

      public static int min(int... array) {
        checkArgument(array.length > 0);
        int min = array[0];
        for (int i = 1; i < array.length; i++) {
          if (array[i] < min) {
            min = array[i];
          }
        }
        return min;
      }
    
      /**
       * Returns the greatest value present in {@code array}.
       *
       * @param array a <i>nonempty</i> array of {@code int} values
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-04-14 16:36
    - 31K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        int len = string.length();
        int size = len * count;
        char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
          System.arraycopy(array, 0, array, n, n);
        }
        System.arraycopy(array, 0, array, n, size - n);
        return new String(array);
      }
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 18:46
    - 3.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(ArrayUtil.addAll(emptyArray, array), is(sameInstance(array)));
            assertThat(ArrayUtil.addAll(array, emptyArray), is(sameInstance(array)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAdd_int() throws Exception {
            final int[] array = new int[] { 1 };
            final int[] newArray = ArrayUtil.add(array, 2);
            assertThat(newArray.length, is(2));
    Registered: 2025-05-24 08:58
    - Last Modified: 2025-05-10 01:32
    - 10.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/ImmutableDoubleArray.java

      private final int end; // exclusive
    
      private ImmutableDoubleArray(double[] array) {
        this(array, 0, array.length);
      }
    
      private ImmutableDoubleArray(double[] 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
    - 22.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/ImmutableLongArray.java

      private final int end; // exclusive
    
      private ImmutableLongArray(long[] array) {
        this(array, 0, array.length);
      }
    
      private ImmutableLongArray(long[] 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)
  7. android/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)
  8. guava/src/com/google/common/primitives/UnsignedBytes.java

       * @since 23.1
       */
      public static void sort(byte[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
      }
    
      /**
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-04-14 16:36
    - 20.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

        checkArgument(array.length > 0);
        long min = array[0];
        for (int i = 1; i < array.length; i++) {
          if (array[i] < min) {
            min = array[i];
          }
        }
        return min;
      }
    
      /**
       * Returns the greatest value present in {@code array}.
       *
       * @param array a <i>nonempty</i> array of {@code long} values
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-04-14 16:36
    - 29.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_dataclasses/test_tutorial003.py

                            "content": {
                                "application/json": {
                                    "schema": {
                                        "title": "Items",
                                        "type": "array",
                                        "items": {"$ref": "#/components/schemas/Item"},
                                    }
                                }
                            },
                            "required": True,
    Registered: 2025-05-25 07:19
    - Last Modified: 2024-07-31 14:09
    - 12.1K bytes
    - Viewed (0)
Back to top