Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for newLinkedHashSet (0.06 sec)

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

        E first = elements.next();
        if (!elements.hasNext()) {
          // TODO: Remove "ImmutableSet.<E>" when eclipse bug is fixed.
          return ImmutableSet.<E>of(first);
        }
    
        Set<E> delegate = Sets.newLinkedHashSet();
        delegate.add(checkNotNull(first));
        do {
          delegate.add(checkNotNull(elements.next()));
        } while (elements.hasNext());
    
        return unsafeDelegate(delegate);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *
         * @param <E> the element type of {@link LinkedHashSet}
         * @return a new instance of {@link LinkedHashSet}
         * @see LinkedHashSet#LinkedHashSet()
         */
        public static <E> LinkedHashSet<E> newLinkedHashSet() {
            return new LinkedHashSet<>();
        }
    
        /**
         * Creates and returns a new instance of {@link LinkedHashSet}.
         *
         * @param <E> the element type of {@link LinkedHashSet}
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

        List<Set<Optional<?>>> optionalSets = Lists.newArrayListWithExpectedSize(sets.length);
        for (Set<?> set : sets) {
          Set<Optional<?>> optionalSet =
              Sets.newLinkedHashSet(Iterables.transform(set, NULLABLE_TO_OPTIONAL));
          optionalSets.add(optionalSet);
        }
        Set<List<Optional<?>>> cartesianProduct = Sets.cartesianProduct(optionalSets);
        return Iterables.transform(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        addAll(list, elements);
        return list;
      }
    
      public static <E extends @Nullable Object> List<E> copyToList(E[] elements) {
        return copyToList(asList(elements));
      }
    
      // Clone of Sets.newLinkedHashSet
      public static <E extends @Nullable Object> Set<E> copyToSet(Iterable<? extends E> elements) {
        Set<E> set = new LinkedHashSet<>();
        addAll(set, elements);
        return set;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SetsTest.java

        LinkedHashSet<Integer> set = Sets.newLinkedHashSet();
        verifyLinkedHashSetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewLinkedHashSetFromCollection() {
        @SuppressWarnings("UseCollectionConstructor") // test of factory method
        LinkedHashSet<Integer> set = Sets.newLinkedHashSet(LONGER_LIST);
        verifyLinkedHashSetContents(set, LONGER_LIST);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  6. README.md

    Map<String, Object> map = CollectionsUtil.newLinkedHashMap();
    Set<String> caseInsensitiveSet = new CaseInsensitiveSet<>();
    
    // Java 21 Sequenced Collections support
    SequencedCollection<String> sequenced = CollectionsUtil.newLinkedHashSet();
    String first = CollectionsUtil.getFirst(sequenced);
    String last = CollectionsUtil.getLast(sequenced);
    SequencedCollection<String> reversed = CollectionsUtil.reversed(sequenced);
    
    // Specialized collections
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

       *
       * @return a new, empty {@code LinkedHashSet}
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> LinkedHashSet<E> newLinkedHashSet() {
        return new LinkedHashSet<>();
      }
    
      /**
       * Creates a <i>mutable</i> {@code LinkedHashSet} instance containing the given elements in order.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
Back to top