Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newSetFromMap (0.06 sec)

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

        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
        // already using Collections.newSetFromMap and ConcurrentHashMap.
        return Collections.newSetFromMap(new ConcurrentHashMap<E, Boolean>());
      }
    
      static <E> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) {
        return Sets.newLinkedHashSetWithExpectedSize(expectedSize);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

            return handle("", exception);
        }
    
        private ExceptionSummary handle(String message, Throwable exception) {
            String reference = getReference(Collections.newSetFromMap(new IdentityHashMap<>()), exception);
    
            List<ExceptionSummary> children = null;
    
            if (exception instanceof ProjectBuildingException) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      public void testNewSetFromMap() {
        Set<Integer> set = Sets.newSetFromMap(new HashMap<Integer, Boolean>());
        set.addAll(SOME_COLLECTION);
        verifySetContents(set, SOME_COLLECTION);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testNewSetFromMapSerialization() {
        Set<Integer> set = Sets.newSetFromMap(new LinkedHashMap<Integer, Boolean>());
        set.addAll(SOME_COLLECTION);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

       * Set<Object> identityHashSet = Sets.newSetFromMap(
       *     new IdentityHashMap<Object, Boolean>());
       * }</pre>
       *
       * <p>The returned set is serializable if the backing map is.
       *
       * @param map the backing map
       * @return the set backed by the map
       * @throws IllegalArgumentException if {@code map} is not empty
       * @deprecated Use {@link Collections#newSetFromMap} instead.
       */
      @Deprecated
    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