@Test public void test() { assertThat(MimeType.valueOf("text/plain")).isEqualTo(new MimeType("text", "plain")); }
@Nonnull public static MimeType valueOf(@Nonnull String raw) { String[] split = raw.split("/"); if (split.length != 2) { throw new IllegalArgumentException("Found illegal mime_type: " + raw); } return new MimeType(split[0], split[1]); }
MimeType { @Nonnull public static MimeType valueOf(@Nonnull String raw) { String[] split = raw.split("/"); if (split.length != 2) { throw new IllegalArgumentException("Found illegal mime_type: " + raw); } return new MimeType(split[0], split[1]); } }
MimeType { @Nonnull public static MimeType valueOf(@Nonnull String raw) { String[] split = raw.split("/"); if (split.length != 2) { throw new IllegalArgumentException("Found illegal mime_type: " + raw); } return new MimeType(split[0], split[1]); }  }
MimeType { @Nonnull public static MimeType valueOf(@Nonnull String raw) { String[] split = raw.split("/"); if (split.length != 2) { throw new IllegalArgumentException("Found illegal mime_type: " + raw); } return new MimeType(split[0], split[1]); }  @Nonnull static MimeType valueOf(@Nonnull String raw); @Override String toString(); }
MimeType { @Nonnull public static MimeType valueOf(@Nonnull String raw) { String[] split = raw.split("/"); if (split.length != 2) { throw new IllegalArgumentException("Found illegal mime_type: " + raw); } return new MimeType(split[0], split[1]); }  @Nonnull static MimeType valueOf(@Nonnull String raw); @Override String toString();  }