Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ImmutableIntArray (0.2 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});
    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)
  2. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        ImmutableIntArray iia0 = ImmutableIntArray.of();
        ImmutableIntArray iia1 = ImmutableIntArray.of(5);
        ImmutableIntArray iia3 = ImmutableIntArray.of(5, 25, 125);
    
        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableIntArray.of());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        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);
        ImmutableIntArray iia3 = ImmutableIntArray.of(5, 25, 125);
    
        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/package-info.java

     * href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>.
     *
     * <h2>Contents</h2>
     *
     * <h3>Value types</h3>
     *
     * <ul>
     *   <li>{@link ImmutableDoubleArray}
     *   <li>{@link ImmutableIntArray}
     *   <li>{@link ImmutableLongrray}
     *   <li>{@link UnsignedInteger}
     *   <li>{@link UnsignedLong}
     * </ul>
     *
     * <h3>Per-type static utilities</h3>
     *
     * <ul>
     *   <li>{@link Booleans}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top