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 boolean
contains(java.lang.String language)
Tests whether this instance contains the given value.java.lang.String
getAny()
Gets any of this instance's element.java.util.Set<java.lang.String>
getLanguages()
Gets the language stringsboolean
isEmpty()
Tests whether this instance is empty.boolean
isSingleton()
Tests whether this instance contains a single element.Languages.LanguageSet
merge(Languages.LanguageSet other)
Languages.LanguageSet
restrictTo(Languages.LanguageSet other)
Returns an instance restricted to this instances and the given values'.java.lang.String
toString()
-
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.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
public java.lang.String 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
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.LanguageSet
Tests whether this instance is empty.- Specified by:
isEmpty
in classLanguages.LanguageSet
- Returns:
- whether this instance is empty.
-
isSingleton
public boolean 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
public Languages.LanguageSet merge(Languages.LanguageSet other)
-
restrictTo
public Languages.LanguageSet restrictTo(Languages.LanguageSet other)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-