Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for NewArray (0.08 seconds)

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

       * @param type the component type
       * @param length the length of the new array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> T[] newArray(Class<@NonNull T> type, int length) {
        return (T[]) Array.newInstance(type, length);
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ObjectArrays.java

       * @param type the component type
       * @param length the length of the new array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> T[] newArray(Class<@NonNull T> type, int length) {
        return (T[]) Array.newInstance(type, length);
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ForwardingCollection.java

       * this implementation.
       *
       * @since 7.0
       */
      protected @Nullable Object[] standardToArray() {
        @Nullable Object[] newArray = new @Nullable Object[size()];
        return toArray(newArray);
      }
    
      /**
       * A sensible definition of {@link #toArray(Object[])} in terms of {@link #size} and {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/ForwardingCollection.java

       * this implementation.
       *
       * @since 7.0
       */
      protected @Nullable Object[] standardToArray() {
        @Nullable Object[] newArray = new @Nullable Object[size()];
        return toArray(newArray);
      }
    
      /**
       * A sensible definition of {@link #toArray(Object[])} in terms of {@link #size} and {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.ObjectArrays.newArray;
    
    import java.util.Collections;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.ConcurrentHashMap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
Back to Top