Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 97 for emptySet (0.18 sec)

  1. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      protected abstract <E extends Comparable<? super E>> Set<E> copyOf(
          Iterator<? extends E> elements);
    
      public void testCreation_noArgs() {
        Set<String> set = of();
        assertEquals(Collections.<String>emptySet(), set);
        assertSame(this.<String>of(), set);
      }
    
      public void testCreation_oneElement() {
        Set<String> set = of("a");
        assertEquals(Collections.singleton("a"), set);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * values.
       */
      private final transient ImmutableSet<V> emptySet;
    
      ImmutableSetMultimap(
          ImmutableMap<K, ImmutableSet<V>> map,
          int size,
          @CheckForNull Comparator<? super V> valueComparator) {
        super(map, size);
        this.emptySet = emptySet(valueComparator);
      }
    
      // views
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java

       * backing multiset.
       */
      ENTRIES_ARE_VIEWS;
    
      @Override
      public Set<Feature<? super Multiset>> getImpliedFeatures() {
        return Collections.emptySet();
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
      @TesterAnnotation
      public @interface Require {
        public abstract MultisetFeature[] value() default {};
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptySet;
    import static java.util.Collections.unmodifiableSet;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import java.util.LinkedHashSet;
    import java.util.ListIterator;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptySet;
    import static java.util.Collections.unmodifiableSet;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    import java.util.LinkedHashSet;
    import java.util.ListIterator;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

      public void testCartesianProduct_binary0x0() {
        Set<Integer> mt = emptySet();
        assertEmpty(Sets.cartesianProduct(mt, mt));
      }
    
      public void testCartesianProduct_binary0x1() {
        Set<Integer> mt = emptySet();
        assertEmpty(Sets.cartesianProduct(mt, set(1)));
      }
    
      public void testCartesianProduct_binary1x0() {
        Set<Integer> mt = emptySet();
        assertEmpty(Sets.cartesianProduct(set(1), mt));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForEmptySet() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForEmptyNavigableSet() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForEmptySortedSet() {
        return Collections.emptySet();
      }
    
    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)
  8. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

          return this;
        } else if (newFromIndex < newToIndex) {
          return new RegularImmutableSortedSet<>(
              elements.subList(newFromIndex, newToIndex), comparator);
        } else {
          return emptySet(comparator);
        }
      }
    
      @Override
      int indexOf(@CheckForNull Object target) {
        if (target == null) {
          return -1;
        }
        int position;
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForSingletonList() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForArraysAsList() {
        return Collections.emptySet();
      }
    
      protected Collection<Method> suppressForArrayList() {
        return Collections.emptySet();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 11.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Absent.java

      }
    
      @Override
      @CheckForNull
      public T orNull() {
        return null;
      }
    
      @Override
      public Set<T> asSet() {
        return Collections.emptySet();
      }
    
      @Override
      public <V> Optional<V> transform(Function<? super T, V> function) {
        checkNotNull(function);
        return Optional.absent();
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 2.5K bytes
    - Viewed (0)
Back to top