|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.lang.Generics
public class Generics
Generics related utilities
Method Summary | ||
---|---|---|
static
|
iterator(Iterator<?> delegate)
Silences generics warning when need to cast iterator types |
|
static
|
model(IModel<?> model)
Supresses generics warning when converting model types |
|
static
|
newArrayList()
Creates a new ArrayList |
|
static
|
newArrayList(int capacity)
Creates a new ArrayList |
|
static
|
newConcurrentHashMap()
Creates a new ConcurrentHashMap |
|
static
|
newConcurrentHashMap(int initialCapacity)
Creates a new ConcurrentHashMap |
|
static
|
newHashMap()
Creates a new HashMap |
|
static
|
newHashMap(int capacity)
Creates a new HashMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Iterator<T> iterator(Iterator<?> delegate)
T
- delegate
-
delegate
iterator cast to proper generics typepublic static <T> IModel<T> model(IModel<?> model)
T
- model
-
model
public static <K,V> HashMap<K,V> newHashMap()
K
- V
-
public static <K,V> HashMap<K,V> newHashMap(int capacity)
K
- V
- capacity
- initial capacity
public static <T> ArrayList<T> newArrayList(int capacity)
T
- capacity
- initial capacity
public static <T> ArrayList<T> newArrayList()
T
-
public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap()
K
- V
-
public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap(int initialCapacity)
K
- V
- initialCapacity
- initial capacity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |