@Test public void structuredSubtypeWilcardIsWildcard() { ImmutableMediaType sut = new ImmutableMediaType(MediaRangeSyntax.RFC6838,"application","*","xml",null); assertThat(sut.isWildcard(),equalTo(true)); }
@Override public boolean isWildcard() { return MediaTypes.WILDCARD_TYPE.equals(this.type) || MediaTypes.WILDCARD_TYPE.equals(this.subtype); }
ImmutableMediaType implements MediaType { @Override public boolean isWildcard() { return MediaTypes.WILDCARD_TYPE.equals(this.type) || MediaTypes.WILDCARD_TYPE.equals(this.subtype); } }
ImmutableMediaType implements MediaType { @Override public boolean isWildcard() { return MediaTypes.WILDCARD_TYPE.equals(this.type) || MediaTypes.WILDCARD_TYPE.equals(this.subtype); } ImmutableMediaType(final MediaRangeSyntax syntax, final String type, final String subtype, String suffix, final Map<String, String> parameters); }
ImmutableMediaType implements MediaType { @Override public boolean isWildcard() { return MediaTypes.WILDCARD_TYPE.equals(this.type) || MediaTypes.WILDCARD_TYPE.equals(this.subtype); } ImmutableMediaType(final MediaRangeSyntax syntax, final String type, final String subtype, String suffix, final Map<String, String> parameters); @Override String type(); @Override String subType(); @Override Charset charset(); @Override String suffix(); @Override Map<String,String> parameters(); @Override boolean isWildcard(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(final Object other); @Override String toString(); }
ImmutableMediaType implements MediaType { @Override public boolean isWildcard() { return MediaTypes.WILDCARD_TYPE.equals(this.type) || MediaTypes.WILDCARD_TYPE.equals(this.subtype); } ImmutableMediaType(final MediaRangeSyntax syntax, final String type, final String subtype, String suffix, final Map<String, String> parameters); @Override String type(); @Override String subType(); @Override Charset charset(); @Override String suffix(); @Override Map<String,String> parameters(); @Override boolean isWildcard(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(final Object other); @Override String toString();  }