Class OTSClassUtil


  • public final class OTSClassUtil
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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