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
Some languages, explicitly enumerated.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether this instance contains the given value.getAny()
Gets any of this instance's element.Gets the language stringsboolean
isEmpty()
Tests whether this instance is empty.boolean
Tests whether this instance contains a single element.merge
(Languages.LanguageSet other) restrictTo
(Languages.LanguageSet other) Returns an instance restricted to this instances and the given values'.toString()
Methods inherited from class org.apache.commons.codec.language.bm.Languages.LanguageSet
from
-
Method Details
-
contains
Description copied from class:Languages.LanguageSet
Tests whether this instance contains the given value.- Specified by:
contains
in classLanguages.LanguageSet
- Parameters:
language
- the value to test.- Returns:
- whether this instance contains the given value.
-
getAny
Description copied from class:Languages.LanguageSet
Gets any of this instance's element.- Specified by:
getAny
in classLanguages.LanguageSet
- Returns:
- any of this instance's element.
-
getLanguages
Gets the language strings- Returns:
- the languages strings.
-
isEmpty
Description copied from class:Languages.LanguageSet
Tests whether this instance is empty.- Specified by:
isEmpty
in classLanguages.LanguageSet
- Returns:
- whether this instance is empty.
-
isSingleton
Description copied from class:Languages.LanguageSet
Tests whether this instance contains a single element.- Specified by:
isSingleton
in classLanguages.LanguageSet
- Returns:
- whether this instance contains a single element.
-
merge
-
restrictTo
Description copied from class:Languages.LanguageSet
Returns an instance restricted to this instances and the given values'.- Specified by:
restrictTo
in classLanguages.LanguageSet
- Parameters:
other
- The other instance.- Returns:
- an instance restricted to this instances and the given values'.
-
toString
-