|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jagg.msd.Discriminators
public class Discriminators
The Discriminators
utility class supplies utility functionality
for Discriminators
.
Method Summary | ||
---|---|---|
static
|
getDiscriminator(java.lang.Class<T> c)
Gets the proper Discriminator for a particular object's
class. |
|
static
|
getDiscriminator(T object)
Gets the proper Discriminator for a particular object. |
|
static
|
getFlattenedList(java.util.List<java.util.List<T>> listOfLists)
"Flattens" a List of Lists into a new
List of T objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Discriminator<T> getDiscriminator(T object)
Discriminator
for a particular object.
T
- The type of the object to be discriminated.object
- The object representing the type to be discriminated.
Discriminator
capable of discriminating objects of
type T
, or null
if one couldn't be found.public static <T> Discriminator<T> getDiscriminator(java.lang.Class<T> c)
Discriminator
for a particular object's
class.
T
- The type of the object to be discriminated.c
- The Class
object representing the type to be
discriminated.
Discriminator
capable of discriminating objects of
type T
, or null
if one couldn't be found.public static <T> java.util.List<T> getFlattenedList(java.util.List<java.util.List<T>> listOfLists)
List
of Lists
into a new
List
of T objects.
T
- The type of object.listOfLists
- A List
of Lists
.
List
that contains only the elements
of each of the internal lists, in the order found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |