Class DeclaredMembers


  • public final class DeclaredMembers
    extends java.lang.Object
    Utility class for retrieving declared fields or methods in a particular order, because the JVM doesn't guarantee ordering for listing declared methods. We don't externally guarantee an ordering, but having a consistent ordering allows deterministic behavior and simpler tests.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.reflect.Field[] getDeclaredFields​(java.lang.Class<?> type)  
      static java.lang.reflect.Method[] getDeclaredMethods​(java.lang.Class<?> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDeclaredFields

        public static java.lang.reflect.Field[] getDeclaredFields​(java.lang.Class<?> type)
      • getDeclaredMethods

        public static java.lang.reflect.Method[] getDeclaredMethods​(java.lang.Class<?> type)