@Test public void wildcardCharacterEncodingHeaderRepresentationIsValid() throws Exception { ImmutableCharacterEncoding sut = wildcard(); assertThat(sut.toHeader(),equalTo("*")); }
@Override public String toHeader() { return name().toLowerCase(Locale.ENGLISH); }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toHeader() { return name().toLowerCase(Locale.ENGLISH); } }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toHeader() { return name().toLowerCase(Locale.ENGLISH); } ImmutableCharacterEncoding(Charset charset); }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toHeader() { return name().toLowerCase(Locale.ENGLISH); } ImmutableCharacterEncoding(Charset charset); @Override boolean isWildcard(); @Override String name(); @Override Charset charset(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ImmutableCharacterEncoding implements CharacterEncoding { @Override public String toHeader() { return name().toLowerCase(Locale.ENGLISH); } ImmutableCharacterEncoding(Charset charset); @Override boolean isWildcard(); @Override String name(); @Override Charset charset(); @Override String toHeader(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }