Package org.opentrafficsim.base
Class OTSClassUtil
java.lang.Object
org.opentrafficsim.base.OTSClassUtil
public final class OTSClassUtil
extends java.lang.Object
Utility class for class operations.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 2 jul. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and Type Method Description static <T> java.lang.Class<T>
getTypedClass(T object)
static <T> java.lang.Class<java.util.List<T>>
getTypedClassList(T object)
-
Method Details
-
getTypedClass
public static <T> java.lang.Class<T> getTypedClass(T object)- Type Parameters:
T
- the type- Parameters:
object
- T; the object to provide the class for- Returns:
- the class of the object
-
getTypedClassList
public static <T> java.lang.Class<java.util.List<T>> getTypedClassList(T object)- Type Parameters:
T
- the type- Parameters:
object
- T; the object to provide the class list for- Returns:
- the class of the object
-