Class OtsClassUtil

java.lang.Object
org.opentrafficsim.base.OtsClassUtil

public final class OtsClassUtil extends Object
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 Details

    • 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