Package de.galan.commons.util
Class Generics
java.lang.Object
de.galan.commons.util.Generics
Helpermethods, that simplify working with generics.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Generics
public Generics()
-
-
Method Details
-
cast
Casts an object by type inference. see also http://weblogs.java.net/blog/emcmanus/archive/2007/03/getting_rid_of.html- Parameters:
x- Object that will be casted
-
getClass
Returns the generic Class object for a given argument.- Type Parameters:
T- Type the argument returns- Parameters:
t- object to check
-