Class UtilGenerics

java.lang.Object
org.apache.ofbiz.base.util.UtilGenerics

public final class UtilGenerics extends Object
  • Method Details

    • cast

      public static <V> V cast(Object object)
    • checkCollection

      public static <E, C extends Collection<E>> C checkCollection(Object object, Class<E> type)
    • checkMap

      public static <K, V> Map<K,V> checkMap(Object object, Class<K> keyType, Class<V> valueType)