Package org.opentrafficsim.base
Class OtsClassUtil
java.lang.Object
org.opentrafficsim.base.OtsClassUtil
Utility class for class operations.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class<T>
getTypedClass
(T object) getTypedClassList
(T object)
-
Method Details
-
getTypedClass
- Type Parameters:
T
- the type- Parameters:
object
- T; the object to provide the class for- Returns:
- the class of the object
-
getTypedClassList
- Type Parameters:
T
- the type- Parameters:
object
- T; the object to provide the class list for- Returns:
- the class of the object
-