Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for element (0.13 sec)

  1. guava/src/com/google/common/collect/ImmutableList.java

       * @since 3.0
       */
      public static <E> ImmutableList<E> copyOf(E[] elements) {
        switch (elements.length) {
          case 0:
            return of();
          case 1:
            return of(elements[0]);
          default:
            return construct(elements.clone());
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  2. android/guava/src/com/google/common/collect/ImmutableList.java

         *
         * @param elements the {@code Iterable} to add to the {@code ImmutableList}
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code elements} is null or contains a null element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E... elements) {
          super.add(elements);
          return this;
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      @JsMethod(name = "of")
      static <E> ImmutableList<E> jsOf(E... elements) {
        return copyOf(elements);
      }
    
      public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
        checkNotNull(elements); // for GWT
        return (elements instanceof Collection)
            ? copyOf((Collection<? extends E>) elements)
            : copyOf(elements.iterator());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top