Class LocaleResourceNameIterator
- java.lang.Object
-
- org.apache.wicket.core.util.resource.locator.LocaleResourceNameIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.String>
public class LocaleResourceNameIterator extends java.lang.Object implements java.util.Iterator<java.lang.String>
Given a Locale it'll iterate over all possible combinations of the attrs making up the Locale. Starting the Locale provided to more 'weaker' combinations. The latest one will be no Locale in which case an empty string will be returned.- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description LocaleResourceNameIterator(java.util.Locale locale, boolean strict)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Locale
getLocale()
boolean
hasNext()
java.lang.String
next()
void
remove()
-
-
-
Method Detail
-
getLocale
public java.util.Locale getLocale()
- Returns:
- Locale
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.String>
- See Also:
Iterator.hasNext()
-
next
public java.lang.String next()
- Specified by:
next
in interfacejava.util.Iterator<java.lang.String>
- See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<java.lang.String>
- See Also:
Iterator.remove()
-
-