Package ru.vyarus.guice.ext.core.util
Class Utils
- java.lang.Object
-
- ru.vyarus.guice.ext.core.util.Utils
-
public final class Utils extends java.lang.ObjectGeneric utilities.- Since:
- 30.06.2014
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckNoParams(java.lang.reflect.Method method)Checks that method has no parameters, otherwise throws exception.static booleanisJava8()Note: versions below 1.8 are not supported.static booleanisPackageValid(java.lang.Class type)Important check, because JDK proxies of public interfaces have no package (thanks to @binkley https://github.com/99soft/lifegycle/pull/5).
-
-
-
Method Detail
-
isPackageValid
public static boolean isPackageValid(java.lang.Class type)
Important check, because JDK proxies of public interfaces have no package (thanks to @binkley https://github.com/99soft/lifegycle/pull/5).- Parameters:
type- class type to check- Returns:
- true if package could be resolved, false otherwise
-
checkNoParams
public static void checkNoParams(java.lang.reflect.Method method)
Checks that method has no parameters, otherwise throws exception.- Parameters:
method- method to check
-
isJava8
public static boolean isJava8()
Note: versions below 1.8 are not supported.- Returns:
- true if current java is 1.8, otherwise assumed 9 or above
-
-