Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SingletonImmutableList (0.08 sec)

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

      @SuppressWarnings("unchecked")
      public static <E> ImmutableList<E> of() {
        return (ImmutableList<E>) RegularImmutableList.EMPTY;
      }
    
      public static <E> ImmutableList<E> of(E e1) {
        return new SingletonImmutableList<E>(checkNotNull(e1));
      }
    
      public static <E> ImmutableList<E> of(E e1, E e2) {
        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableList.java

       * preferable mainly for consistency and maintainability of your code.
       *
       * @throws NullPointerException if the element is null
       */
      public static <E> ImmutableList<E> of(E e1) {
        return new SingletonImmutableList<>(e1);
      }
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
       * @throws NullPointerException if any element is null
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top