Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testAsSet_present (0.15 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

      public void testOrNull_present() {
        assertEquals("a", Optional.of("a").orNull());
      }
    
      public void testOrNull_absent() {
        assertThat(Optional.absent().orNull()).isNull();
      }
    
      public void testAsSet_present() {
        Set<String> expected = Collections.singleton("a");
        assertEquals(expected, Optional.of("a").asSet());
      }
    
      public void testAsSet_absent() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
Back to Top