Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,871 for Barray (0.18 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        E[] array = (E[]) Iterables.toArray(elements);
        checkElementsNotNull(array);
        Arrays.sort(array, comparator);
        return asImmutableList(array);
      }
    
      private static <E> List<E> nullCheckedList(Object... array) {
        for (int i = 0, len = array.length; i < len; i++) {
          if (array[i] == null) {
            throw new NullPointerException("at index " + i);
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Shorts.java

      public static short min(short... array) {
        checkArgument(array.length > 0);
        short 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 short} values
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  3. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  4. android/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;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  5. android/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;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  6. 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);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ArrayTableTest.java

      }
    
      @GwtIncompatible // ArrayTable.toArray(Class)
      public void testToArray() {
        ArrayTable<String, Integer, Character> table =
            create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Character[][] array = table.toArray(Character.class);
        assertThat(array).hasLength(3);
        assertThat(array[0]).asList().containsExactly('a', null, 'c').inOrder();
        assertThat(array[1]).asList().containsExactly('b', null, null).inOrder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ArrayTableTest.java

      }
    
      @GwtIncompatible // ArrayTable.toArray(Class)
      public void testToArray() {
        ArrayTable<String, Integer, Character> table =
            create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Character[][] array = table.toArray(Character.class);
        assertThat(array).hasLength(3);
        assertThat(array[0]).asList().containsExactly('a', null, 'c').inOrder();
        assertThat(array[1]).asList().containsExactly('b', null, null).inOrder();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  9. android/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;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSetFloodingTest.java

            Object o6 = list.get(5);
            Object[] rest = list.subList(6, list.size()).toArray();
            return ImmutableSet.of(o1, o2, o3, o4, o5, o6, rest);
          }
        },
        COPY_OF_ARRAY {
          @Override
          public ImmutableSet<Object> create(List<?> list) {
            return ImmutableSet.copyOf(list.toArray());
          }
        },
        COPY_OF_LIST {
          @Override
    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)
Back to top