Class Languages.LanguageSet
java.lang.Object
org.apache.commons.codec.language.bm.Languages.LanguageSet
- Direct Known Subclasses:
- Languages.SomeLanguages
- Enclosing class:
- Languages
A set of languages.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract booleanTests whether this instance contains the given value.static Languages.LanguageSetGets a language set for the given languages.abstract StringgetAny()Gets any of this instance's element.abstract booleanisEmpty()Tests whether this instance is empty.abstract booleanTests whether this instance contains a single element.abstract Languages.LanguageSetrestrictTo(Languages.LanguageSet other) Returns an instance restricted to this instances and the given values'.
- 
Constructor Details- 
LanguageSetpublic LanguageSet()Constructs a new instance for subclasses.
 
- 
- 
Method Details- 
fromGets a language set for the given languages.- Parameters:
- languages- a language set.
- Returns:
- a LanguageSet.
 
- 
containsTests whether this instance contains the given value.- Parameters:
- language- the value to test.
- Returns:
- whether this instance contains the given value.
 
- 
getAnyGets any of this instance's element.- Returns:
- any of this instance's element.
 
- 
isEmptyTests whether this instance is empty.- Returns:
- whether this instance is empty.
 
- 
isSingletonTests whether this instance contains a single element.- Returns:
- whether this instance contains a single element.
 
- 
restrictToReturns an instance restricted to this instances and the given values'.- Parameters:
- other- The other instance.
- Returns:
- an instance restricted to this instances and the given values'.
 
 
-