Java Object Type Case castClass(Class aClass)

Here you can find the source of castClass(Class aClass)

Description

cast Class

License

Apache License

Declaration

@SuppressWarnings("unchecked")
    public static <T> Class<T> castClass(Class<?> aClass) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    @SuppressWarnings("unchecked")
    public static <T> Class<T> castClass(Class<?> aClass) {
        return (Class<T>) aClass;
    }//from  w w  w  . j  a v a  2s. c o  m
}

Related

  1. cast(String type)
  2. castAndThrow(Throwable e)
  3. castArray(Object[] array, T[] targetArray)
  4. castAs(Class clazz, Object obj)
  5. castAsDoubleArray(int[] input)
  6. castClone(U obj, T superClone)
  7. castEnum(Enum enum_param)
  8. castEnum(T from, U[] to)
  9. castForRegex(String textContent)