Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 480 for empty (0.19 sec)

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

        try {
          copyOf((String[]) array);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_collection_empty() {
        // "<String>" is required to work around a javac 1.5 bug.
        Collection<String> c = MinimalCollection.<String>of();
        Set<String> set = copyOf(c);
        assertEquals(Collections.<String>emptySet(), 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-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        getMultiset().entrySet().clear();
        assertTrue("multiset not empty after entrySet().clear()", getMultiset().isEmpty());
      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testEntrySet_iteratorRemovePropagates() {
        Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator();
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 9.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/BytesTest.java

      public void testConcat() {
        assertThat(Bytes.concat()).isEqualTo(EMPTY);
        assertThat(Bytes.concat(EMPTY)).isEqualTo(EMPTY);
        assertThat(Bytes.concat(EMPTY, EMPTY, EMPTY)).isEqualTo(EMPTY);
        assertThat(Bytes.concat(ARRAY1)).isEqualTo(ARRAY1);
        assertThat(Bytes.concat(ARRAY1)).isNotSameInstanceAs(ARRAY1);
        assertThat(Bytes.concat(EMPTY, ARRAY1, EMPTY)).isEqualTo(ARRAY1);
        assertThat(Bytes.concat(ARRAY1, ARRAY1, ARRAY1))
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types.
          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
          return new RegularImmutableSortedSet<>(ImmutableList.of(), comparator);
        }
      }
    
      /**
       * Returns the empty immutable sorted set.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        expectContents();
      }
    
      // retainAll(null)
    
      /*
       * AbstractCollection fails the retainAll(null) test when the subject
       * collection is empty, but we'd still like to test retainAll(null) when we
       * can. We split the test into empty and non-empty cases. This allows us to
       * suppress only the former.
       */
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.ObjectArrays.checkElementsNotNull;
    import static com.google.common.collect.RegularImmutableList.EMPTY;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/TreeMultimap.java

      /**
       * Creates an empty {@code TreeMultimap} ordered by the natural ordering of its keys and values.
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <K extends Comparable, V extends Comparable> TreeMultimap<K, V> create() {
        return new TreeMultimap<>(Ordering.natural(), Ordering.natural());
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ComparatorsTest.java

      }
    
      public void testEmptiesFirst() {
        Optional<String> empty = Optional.empty();
        Optional<String> abc = Optional.of("abc");
        Optional<String> z = Optional.of("z");
    
        Comparator<Optional<String>> comparator = Comparators.emptiesFirst(comparing(String::length));
        Helpers.testComparator(comparator, empty, z, abc);
    
        // Just demonstrate that no explicit type parameter is required
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/SourceSinkTester.java

              + "eget augue. Sed nec arcu sem. In hac habitasse platea dictumst.";
    
      static final ImmutableMap<String, String> TEST_STRINGS =
          ImmutableMap.<String, String>builder()
              .put("empty", "")
              .put("1 char", "0")
              .put("1 word", "hello")
              .put("2 words", "hello world")
              .put("\\n line break", "hello\nworld")
              .put("\\r line break", "hello\rworld")
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 18:57:08 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertEquals(expected.length, ByteSource.concat(b1, b2, b3).size());
        assertFalse(ByteSource.concat(b1, b2, b3).isEmpty());
    
        ByteSource emptyConcat = ByteSource.concat(ByteSource.empty(), ByteSource.empty());
        assertTrue(emptyConcat.isEmpty());
        assertEquals(0, emptyConcat.size());
      }
    
      public void testConcat_infiniteIterable() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
Back to top