Package mgui.classes

Class ClassFunctions

java.lang.Object
mgui.interfaces.Utility
mgui.classes.ClassFunctions

public class ClassFunctions
extends Utility
Set of functions on classes
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Summary

    Constructors
    Constructor Description
    ClassFunctions()  
  • Method Summary

    Modifier and Type Method Description
    static java.util.ArrayList<java.lang.reflect.Field> getAllFields​(java.lang.Class<?> clazz)
    Retrieves all public, protected, and private fields of this class and its superclasses.
    static boolean isGenericAssignable​(java.lang.Class<?> c1, java.lang.Class<?> c2)  
    static boolean isMember​(java.lang.Class<?> subClass, java.lang.Class<?> superClass)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClassFunctions

      public ClassFunctions()
  • Method Details

    • isMember

      public static boolean isMember​(java.lang.Class<?> subClass, java.lang.Class<?> superClass)
    • isGenericAssignable

      public static boolean isGenericAssignable​(java.lang.Class<?> c1, java.lang.Class<?> c2)
    • getAllFields

      public static java.util.ArrayList<java.lang.reflect.Field> getAllFields​(java.lang.Class<?> clazz)
      Retrieves all public, protected, and private fields of this class and its superclasses.
      Parameters:
      clazz -
      Returns: