Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for ImmutableIntArray (0.1 seconds)

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

     */
    @GwtCompatible
    @Immutable
    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});
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  2. 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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 20.6K bytes
    - Click Count (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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.2K bytes
    - Click Count (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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 31.3K bytes
    - Click Count (0)
Back to Top