Class OTSClassUtil


  • public final class OTSClassUtil
    extends Object
    Utility class for class operations.

    Copyright (c) 2013-2020 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 Detail

      • getTypedClass

        public static <T> 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> Class<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