Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for diamond (0.14 sec)

  1. android/guava/src/com/google/common/collect/Sets.java

       * use the {@code HashSet} constructor directly, taking advantage of <a
       * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
       * syntax</a>.
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> HashSet<E> newHashSet() {
        return new HashSet<>();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top