org.apache.wicket.core.util.resource.locator
Class LocaleResourceNameIterator
java.lang.Object
org.apache.wicket.core.util.resource.locator.LocaleResourceNameIterator
- All Implemented Interfaces:
- Iterator<String>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleResourceNameIterator
public LocaleResourceNameIterator(Locale locale,
boolean strict)
- Construct.
- Parameters:
locale
- strict
-
getLocale
public Locale getLocale()
- Returns:
- Locale
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<String>
- See Also:
Iterator.hasNext()
next
public String next()
- Specified by:
next
in interface Iterator<String>
- See Also:
Iterator.next()
remove
public void remove()
- Specified by:
remove
in interface Iterator<String>
- See Also:
Iterator.remove()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.