Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasWildcard (0.14 sec)

  1. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertFalse(PLAIN_TEXT_UTF_8.hasWildcard());
        assertFalse(JPEG.hasWildcard());
        assertTrue(ANY_TYPE.hasWildcard());
        assertTrue(ANY_APPLICATION_TYPE.hasWildcard());
        assertTrue(ANY_AUDIO_TYPE.hasWildcard());
        assertTrue(ANY_IMAGE_TYPE.hasWildcard());
        assertTrue(ANY_TEXT_TYPE.hasWildcard());
        assertTrue(ANY_VIDEO_TYPE.hasWildcard());
      }
    
      public void testIs() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/MediaType.java

        withCharset.parsedCharset = Optional.of(charset);
        return withCharset;
      }
    
      /** Returns true if either the type or subtype is the wildcard. */
      public boolean hasWildcard() {
        return WILDCARD.equals(type) || WILDCARD.equals(subtype);
      }
    
      /**
       * Returns {@code true} if this instance falls within the range (as defined by <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
Back to top