Uses of Class
com.miloun.cosmo.Cosmo
-
Uses of Cosmo in com.miloun.cosmo
Methods in com.miloun.cosmo that return CosmoModifier and TypeMethodDescriptionCosmo.addLikelySubtags()A new Cosmo with likely subtags added ("en"→"en_Latn_US").static CosmoCosmo.fromAcceptLanguage(String header) Builds a Cosmo from an HTTPAccept-Languageheader.static CosmoCosmo.fromAcceptLanguage(String header, Modifiers modifiers) Builds a Cosmo from an HTTPAccept-Languageheader, picking the best-quality tag.static CosmoCosmo.fromAcceptLanguage(String header, Collection<String> supported) Negotiating variant offromAcceptLanguage(String, Collection, Modifiers).static CosmoCosmo.fromAcceptLanguage(String header, Collection<String> supported, Modifiers modifiers) Builds a Cosmo for the supported locale that best serves an HTTPAccept-Languageheader, negotiated with CLDR language-distance data (seebestMatch(java.util.Collection<java.lang.String>)).static CosmoCosmo.fromSubtags(Subtags subtags) Builds a Cosmo from locale subtags, e.g.static CosmoCosmo.fromSubtags(Subtags subtags, Modifiers modifiers) Builds a Cosmo from locale subtags instead of a string.Cosmo.removeLikelySubtags()A new Cosmo with likely subtags removed ("en_Latn_US"→"en").