- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for createApplicationType (0.1 seconds)
-
android/guava/src/com/google/common/net/MediaType.java
} /** * Creates a media type with the "application" type and the given subtype. * * @throws IllegalArgumentException if subtype is invalid */ static MediaType createApplicationType(String subtype) { return create(APPLICATION_TYPE, subtype); } /** * Creates a media type with the "audio" type and the given subtype. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 02 01:46:40 GMT 2025 - 48K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
public void testCreate_emptySubtype() { assertThrows(IllegalArgumentException.class, () -> MediaType.create("a", "")); } public void testCreateApplicationType() { MediaType newType = MediaType.createApplicationType("yams"); assertThat(newType.type()).isEqualTo("application"); assertThat(newType.subtype()).isEqualTo("yams"); } public void testCreateAudioType() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 20.4K bytes - Click Count (0)