Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 84 for emptySet (0.42 seconds)

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

    import static com.google.common.collect.testing.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyMap;
    import static java.util.Collections.emptySet;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/Helpers.java

              }
            };
      }
    
      static <T extends @Nullable Object> Iterator<T> cycle(Iterable<T> iterable) {
        return new Iterator<T>() {
          Iterator<T> iterator = Collections.<T>emptySet().iterator();
    
          @Override
          public boolean hasNext() {
            return true;
          }
    
          @Override
          public T next() {
            if (!iterator.hasNext()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/RangeTest.java

        assertTrue(range.containsAll(ImmutableSortedSet.<Integer>of()));
        assertFalse(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5, 6)));
    
        assertTrue(Range.openClosed(3, 3).containsAll(Collections.<Integer>emptySet()));
      }
    
      public void testEncloses_open() {
        Range<Integer> range = Range.open(2, 5);
        assertTrue(range.encloses(range));
        assertTrue(range.encloses(Range.open(2, 4)));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

              result = TreeSet(String.CASE_INSENSITIVE_ORDER)
            }
            for (varyField in value.split(',')) {
              result.add(varyField.trim())
            }
          }
          return result ?: emptySet()
        }
    
        /**
         * Returns the subset of the headers in this's request that impact the content of this's body.
         */
        fun Response.varyHeaders(): Headers {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 17:41:45 GMT 2025
    - 26.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

         * Builds a new min-max priority queue using the previously specified options, and having no
         * initial contents.
         */
        public <T extends B> MinMaxPriorityQueue<T> create() {
          return create(Collections.emptySet());
        }
    
        /**
         * Builds a new min-max priority queue using the previously specified options, and having the
         * given initial elements.
         */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
        } else {
          return new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(comparator), ImmutableList.of());
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 52.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableSet.java

       */
      public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return CollectCollectors.toImmutableSet();
      }
    
      /**
       * Returns the empty immutable set. Preferred over {@link Collections#emptySet} for code
       * consistency, and because the return type conveys the immutability guarantee.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Nov 07 16:09:47 GMT 2025
    - 35.3K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                realms = new HashSet<>();
                for (ClassRealm realm : classWorld.getRealms()) {
                    realms.add(realm.getId());
                }
            } else {
                realms = Collections.emptySet();
            }
    
            try {
                if (stdout != null) {
                    System.setOut(stdout);
                }
                if (stderr != null) {
                    System.setErr(stderr);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

         * @param artifacts The set of artifacts, may be {@code null}.
         */
        public void setResolvedArtifacts(Set<Artifact> artifacts) {
            this.resolvedArtifacts = (artifacts != null) ? artifacts : Collections.emptySet();
            this.artifacts = null;
            this.artifactMap = null;
        }
    
        /**
         * Sets the scope filter to select the artifacts being exposed to the currently executed mojo.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Aug 29 12:47:20 GMT 2025
    - 67K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

       * | `http://host/?a=apple&b`          | `["a", "b"]`            |
       */
      @get:JvmName("queryParameterNames")
      val queryParameterNames: Set<String>
        get() {
          if (queryNamesAndValues == null) return emptySet()
          val result = LinkedHashSet<String>(queryNamesAndValues.size / 2, 1.0F)
          for (i in 0 until queryNamesAndValues.size step 2) {
            result.add(queryNamesAndValues[i]!!)
          }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 63.5K bytes
    - Click Count (0)
Back to Top