Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for unmodifiableSet (0.23 sec)

  1. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    import static com.google.common.collect.testing.Helpers.assertEqualInOrder;
    import static com.google.common.collect.testing.Platform.format;
    import static java.util.Arrays.asList;
    import static java.util.Collections.unmodifiableSet;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    Set<String> innerSet = new HashSet<>();
                    Collections.addAll(innerSet, elements);
                    return Collections.unmodifiableSet(innerSet);
                  }
                })
            .named("unmodifiableSet/HashSet")
            .withFeatures(
                CollectionFeature.NONE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    Set<String> innerSet = new HashSet<>();
                    Collections.addAll(innerSet, elements);
                    return Collections.unmodifiableSet(innerSet);
                  }
                })
            .named("unmodifiableSet/HashSet")
            .withFeatures(
                CollectionFeature.NONE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Tables.java

        @Override
        protected Table<R, C, V> delegate() {
          return (Table<R, C, V>) delegate;
        }
    
        @Override
        public Set<Cell<R, C, V>> cellSet() {
          return Collections.unmodifiableSet(super.cellSet());
        }
    
        @Override
        public void clear() {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/AbstractNetwork.java

        Set<E> outEdgesU = outEdges(nodeU);
        Set<E> inEdgesV = inEdges(nodeV);
        return nodePairInvalidatableSet(
            outEdgesU.size() <= inEdgesV.size()
                ? unmodifiableSet(Sets.filter(outEdgesU, connectedPredicate(nodeU, nodeV)))
                : unmodifiableSet(Sets.filter(inEdgesV, connectedPredicate(nodeV, nodeU))),
            nodeU,
            nodeV);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        for (Feature<?> feature : features) {
          this.features.add(feature);
        }
        return self();
      }
    
      public Set<Feature<?>> getFeatures() {
        return Collections.unmodifiableSet(features);
      }
    
      // Name
    
      private @Nullable String name;
    
      /** Configures this builder produce a TestSuite with the given name. */
      @CanIgnoreReturnValue
      public B named(String name) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multisets.java

          return (Multiset<E>) delegate;
        }
    
        @LazyInit @CheckForNull transient Set<E> elementSet;
    
        Set<E> createElementSet() {
          return Collections.<E>unmodifiableSet(delegate.elementSet());
        }
    
        @Override
        public Set<E> elementSet() {
          Set<E> es = elementSet;
          return (es == null) ? elementSet = createElementSet() : es;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FilteredEntryMultimap.java

              itr.remove();
              result.add(v);
            }
          }
          if (result.isEmpty()) {
            return null;
          } else if (unfiltered instanceof SetMultimap) {
            return Collections.unmodifiableSet(Sets.newLinkedHashSet(result));
          } else {
            return Collections.unmodifiableList(result);
          }
        }
    
        @Override
        Set<K> createKeySet() {
          @WeakOuter
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new TreeSet<E>(contents);
          }
        },
        UnmodifiableSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return Collections.unmodifiableSet(new HashSet<E>(contents));
          }
        },
        SynchronizedSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new TreeSet<E>(contents);
          }
        },
        UnmodifiableSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
            return Collections.unmodifiableSet(new HashSet<E>(contents));
          }
        },
        SynchronizedSetImpl {
          @Override
          public <E extends Comparable<E>> Set<E> create(Collection<E> contents) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
Back to top