Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for is_set (0.16 sec)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

        Set<String> expected = Collections.singleton("a");
        assertEquals(expected, Optional.of("a").asSet());
      }
    
      public void testAsSet_absent() {
        assertTrue("Returned set should be empty", Optional.absent().asSet().isEmpty());
      }
    
      public void testAsSet_presentIsImmutable() {
        Set<String> presentAsSet = Optional.of("a").asSet();
        try {
          presentAsSet.add("b");
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        ImmutableSortedSet<Integer> asSet = RANGE_SET_ONE.asSet(DiscreteDomain.integers());
        assertEquals(expectedSet, asSet);
        assertThat(asSet).containsExactlyElementsIn(expectedSet).inOrder();
        assertTrue(asSet.containsAll(expectedSet));
        SerializableTester.reserializeAndAssert(asSet);
      }
    
      public void testAsSetHeadSet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableRangeSet.java

       *
       * <p><b>Note:</b> {@code a.asSet(d).equals(b.asSet(d))} does not imply {@code a.equals(b)}! For
       * example, {@code a} and {@code b} could be {@code [2..4]} and {@code (1..5)}, or the empty
       * ranges {@code [3..3)} and {@code [4..4)}.
       *
       * <p><b>Warning:</b> Be extremely careful what you do with the {@code asSet} view of a large
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       *
       * <p><b>Note:</b> {@code a.asSet(d).equals(b.asSet(d))} does not imply {@code a.equals(b)}! For
       * example, {@code a} and {@code b} could be {@code [2..4]} and {@code (1..5)}, or the empty
       * ranges {@code [3..3)} and {@code [4..4)}.
       *
       * <p><b>Warning:</b> Be extremely careful what you do with the {@code asSet} view of a large
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/OptionalTest.java

        Set<String> expected = Collections.singleton("a");
        assertEquals(expected, Optional.of("a").asSet());
      }
    
      public void testAsSet_absent() {
        assertTrue("Returned set should be empty", Optional.absent().asSet().isEmpty());
      }
    
      public void testAsSet_presentIsImmutable() {
        Set<String> presentAsSet = Optional.of("a").asSet();
        try {
          presentAsSet.add("b");
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Optional.java

       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method has no equivalent in Java 8's
       * {@code Optional} class. However, this common usage:
       *
       * <pre>{@code
       * for (Foo foo : possibleFoo.asSet()) {
       *   doSomethingWith(foo);
       * }
       * }</pre>
       *
       * ... can be replaced with:
       *
       * <pre>{@code
       * possibleFoo.ifPresent(foo -> doSomethingWith(foo));
       * }</pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        ImmutableSortedSet<Integer> asSet = RANGE_SET_ONE.asSet(DiscreteDomain.integers());
        assertEquals(expectedSet, asSet);
        assertThat(asSet).containsExactlyElementsIn(expectedSet).inOrder();
        assertTrue(asSet.containsAll(expectedSet));
        SerializableTester.reserializeAndAssert(asSet);
      }
    
      public void testAsSetHeadSet() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Optional.java

       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method has no equivalent in Java 8's
       * {@code Optional} class. However, this common usage:
       *
       * <pre>{@code
       * for (Foo foo : possibleFoo.asSet()) {
       *   doSomethingWith(foo);
       * }
       * }</pre>
       *
       * ... can be replaced with:
       *
       * <pre>{@code
       * possibleFoo.ifPresent(foo -> doSomethingWith(foo));
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/Network.java

       * #incidentNodes(Object)}). If this network does not {@link #allowsParallelEdges() allow parallel
       * edges}, the resulting set will contain at most one edge (equivalent to {@code
       * edgeConnecting(nodeU, nodeV).asSet()}).
       *
       * <p>If either {@code nodeU} or {@code nodeV} are removed from the network after this method is
       * called, the {@code Set} {@code view} returned by this method will be invalidated, and will
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        public static Test suite() {
          TestSuite suite = new TestSuite();
    
          suite.addTest(
              NavigableSetTestSuiteBuilder.using(new ContiguousSetGenerator())
                  .named("Range.asSet")
                  .withFeatures(
                      CollectionSize.ANY,
                      KNOWN_ORDER,
                      ALLOWS_NULL_QUERIES,
                      NON_STANDARD_TOSTRING,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 19.1K bytes
    - Viewed (0)
Back to top