< prev index next >

src/java.base/share/classes/jdk/internal/util/ReferencedKeySet.java

Print this page
@@ -104,29 +104,11 @@
       *
       * @param <E> the type of elements maintained by this set
       */
      public static <E> ReferencedKeySet<E>
      create(boolean isSoft, Supplier<Map<ReferenceKey<E>, ReferenceKey<E>>> supplier) {
-         return create(isSoft, false, supplier);
-     }
- 
-     /**
-      * Create a new {@link ReferencedKeySet} elements.
-      *
-      * @param isSoft          true if {@link SoftReference} elements are to
-      *                        be used, {@link WeakReference} otherwise.
-      * @param useNativeQueue  true if uses NativeReferenceQueue
-      *                        otherwise use {@link ReferenceQueue}.
-      * @param supplier        {@link Supplier} of the backing map
-      *
-      * @return a new set with {@link Reference} elements
-      *
-      * @param <E> the type of elements maintained by this set
-      */
-     public static <E> ReferencedKeySet<E>
-     create(boolean isSoft, boolean useNativeQueue, Supplier<Map<ReferenceKey<E>, ReferenceKey<E>>> supplier) {
-          return new ReferencedKeySet<>(ReferencedKeyMap.create(isSoft, useNativeQueue, supplier));
+         return new ReferencedKeySet<>(ReferencedKeyMap.create(isSoft, supplier));
      }
  
      /**
       * Removes enqueued weak references from set.
       */
< prev index next >