Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ImmutableIntArray (0.12 sec)

  1. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

    @Immutable
    @ElementTypesAreNonnullByDefault
    public final class ImmutableIntArray implements Serializable {
      private static final ImmutableIntArray EMPTY = new ImmutableIntArray(new int[0]);
    
      /** Returns the empty array. */
      public static ImmutableIntArray of() {
        return EMPTY;
      }
    
      /** Returns an immutable array containing a single value. */
      public static ImmutableIntArray of(int e0) {
        return new ImmutableIntArray(new int[] {e0});
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/ImmutableIntArray.java

    @Immutable
    @ElementTypesAreNonnullByDefault
    public final class ImmutableIntArray implements Serializable {
      private static final ImmutableIntArray EMPTY = new ImmutableIntArray(new int[0]);
    
      /** Returns the empty array. */
      public static ImmutableIntArray of() {
        return EMPTY;
      }
    
      /** Returns an immutable array containing a single value. */
      public static ImmutableIntArray of(int e0) {
        return new ImmutableIntArray(new int[] {e0});
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

      public void testStream() {
        ImmutableIntArray.of().stream().forEach(i -> fail());
        ImmutableIntArray.of(0, 1, 3).subArray(1, 1).stream().forEach(i -> fail());
        assertThat(ImmutableIntArray.of(0, 1, 3).stream().toArray()).isEqualTo(new int[] {0, 1, 3});
      }
    
      public void testSubArray() {
        ImmutableIntArray iia0 = ImmutableIntArray.of();
        ImmutableIntArray iia1 = ImmutableIntArray.of(5);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Ints.java

       * the returned list is unspecified.
       *
       * <p>The returned list is serializable.
       *
       * <p><b>Note:</b> when possible, you should represent your data as an {@link ImmutableIntArray}
       * instead, which has an {@link ImmutableIntArray#asList asList} view.
       *
       * @param backingArray the array to back the list
       * @return a list view of the array
       */
      public static List<Integer> asList(int... backingArray) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top