Class Util


  • public class Util
    extends java.lang.Object
    Internal Use Only.

    Utility methods.

    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isTypeSupported​(org.slf4j.Logger log, java.lang.Object o, java.lang.Class<?> cls, java.lang.String methodName)
      Returns whether the object is an instance of the specified class, if not, log an info.
      • Methods inherited from class java.lang.Object

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

      • Util

        public Util()
    • Method Detail

      • isTypeSupported

        public static boolean isTypeSupported​(org.slf4j.Logger log,
                                              java.lang.Object o,
                                              java.lang.Class<?> cls,
                                              java.lang.String methodName)
        Returns whether the object is an instance of the specified class, if not, log an info.
        Parameters:
        log - the logger to log the info
        o - the object to check
        cls - the class currently supported
        methodName - the method name to show in the log
        Returns:
        whether the object is an instance of the specified class