Class UncheckedCasts
java.lang.Object
ru.progrm_jarvis.javacommons.util.UncheckedCasts
Commonly used unchecked casts.
- API note
- parameters can be
nullbecause casting ofnullis always correct
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class<T>uncheckedClassCast(Class<?> type) Casts the given class object into the specific one.
-
Method Details
-
uncheckedClassCast
Casts the given class object into the specific one.- Type Parameters:
T- exact wanted type of class object- Parameters:
type- raw-typed class object- Returns:
- the provided class object with its type cast to the specific one
- API note
- this is effectively no-op
-