|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.util.Generic
public class Generic
Static methods to make instances of collections with their generic types inferred from what
they're being assigned to. The idea is stolen from Sets
, Lists
and
Maps
from Google
Collections.
Constructor Summary | |
---|---|
Generic()
|
Method Summary | ||
---|---|---|
static
|
list()
Makes a List with its generic type inferred from whatever its being assigned to. |
|
static
|
map()
Makes a Map using generic types inferred from whatever this is being assigned to. |
|
static
|
set()
Makes a Set using the generic type inferred from whatever this is being assigned to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Generic()
Method Detail |
---|
public static <T> java.util.List<T> list()
public static <K,V> java.util.Map<K,V> map()
public static <T> java.util.Set<T> set()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |