Class Accessibles

    • Constructor Detail

      • Accessibles

        public Accessibles()
    • Method Detail

      • accessible

        public static <T extends AccessibleObject> T accessible​(T object)
        Set the AccessibleObject as accessible
        Type Parameters:
        T - the type of accessible object
        Parameters:
        object - the object that we want to ensure is accessible
        Returns:
        the object marked as accessible
        Throws:
        ReflectionException - in case we couldn't mark the object as accessible
      • isAccessible

        public static boolean isAccessible​(AccessibleObject object)