Class LocaleResourceNameIterator
- java.lang.Object
-
- org.apache.wicket.core.util.resource.locator.LocaleResourceNameIterator
-
public class LocaleResourceNameIterator extends Object implements Iterator<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(Locale locale, boolean strict)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
getLocale()
boolean
hasNext()
String
next()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
LocaleResourceNameIterator
public LocaleResourceNameIterator(Locale locale, boolean strict)
Construct.- Parameters:
locale
-strict
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<String>
- See Also:
Iterator.hasNext()
-
next
public String next()
- Specified by:
next
in interfaceIterator<String>
- See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<String>
- See Also:
Iterator.remove()
-
-