Class Languages.SomeLanguages
- java.lang.Object
-
- org.apache.commons.codec.language.bm.Languages.LanguageSet
-
- org.apache.commons.codec.language.bm.Languages.SomeLanguages
-
- Enclosing class:
- Languages
public static final class Languages.SomeLanguages extends Languages.LanguageSet
Some languages, explicitly enumerated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.String language)Tests whether this instance contains the given value.java.lang.StringgetAny()Gets any of this instance's element.java.util.Set<java.lang.String>getLanguages()Gets the language stringsbooleanisEmpty()Tests whether this instance is empty.booleanisSingleton()Tests whether this instance contains a single element.Languages.LanguageSetmerge(Languages.LanguageSet other)Languages.LanguageSetrestrictTo(Languages.LanguageSet other)Returns an instance restricted to this instances and the given values'.java.lang.StringtoString()-
Methods inherited from class org.apache.commons.codec.language.bm.Languages.LanguageSet
from
-
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.String language)
Description copied from class:Languages.LanguageSetTests whether this instance contains the given value.- Specified by:
containsin classLanguages.LanguageSet- Parameters:
language- the value to test.- Returns:
- whether this instance contains the given value.
-
getAny
public java.lang.String getAny()
Description copied from class:Languages.LanguageSetGets any of this instance's element.- Specified by:
getAnyin classLanguages.LanguageSet- Returns:
- any of this instance's element.
-
getLanguages
public java.util.Set<java.lang.String> getLanguages()
Gets the language strings- Returns:
- the languages strings.
-
isEmpty
public boolean isEmpty()
Description copied from class:Languages.LanguageSetTests whether this instance is empty.- Specified by:
isEmptyin classLanguages.LanguageSet- Returns:
- whether this instance is empty.
-
isSingleton
public boolean isSingleton()
Description copied from class:Languages.LanguageSetTests whether this instance contains a single element.- Specified by:
isSingletonin classLanguages.LanguageSet- Returns:
- whether this instance contains a single element.
-
merge
public Languages.LanguageSet merge(Languages.LanguageSet other)
-
restrictTo
public Languages.LanguageSet restrictTo(Languages.LanguageSet other)
Description copied from class:Languages.LanguageSetReturns an instance restricted to this instances and the given values'.- Specified by:
restrictToin classLanguages.LanguageSet- Parameters:
other- The other instance.- Returns:
- an instance restricted to this instances and the given values'.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-