Class UtilGenerics


  • public final class UtilGenerics
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <V> V cast​(java.lang.Object object)  
      static <E,​C extends java.util.Collection<E>>
      C
      checkCollection​(java.lang.Object object, java.lang.Class<E> type)  
      static <K,​V>
      java.util.Map<K,​V>
      checkMap​(java.lang.Object object, java.lang.Class<K> keyType, java.lang.Class<V> valueType)  
      • Methods inherited from class java.lang.Object

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

      • cast

        public static <V> V cast​(java.lang.Object object)
      • checkCollection

        public static <E,​C extends java.util.Collection<E>> C checkCollection​(java.lang.Object object,
                                                                                    java.lang.Class<E> type)
      • checkMap

        public static <K,​V> java.util.Map<K,​V> checkMap​(java.lang.Object object,
                                                                    java.lang.Class<K> keyType,
                                                                    java.lang.Class<V> valueType)