Class DynamicObject


  • public class DynamicObject
    extends Object
    Utility class to access (R/W) field in super class hierarchy.

    It has decent performance as it LRU-caches reflective call.

    • Constructor Detail

      • DynamicObject

        public DynamicObject​(Object target)
    • Method Detail

      • set

        public void set​(String fieldName,
                        Object value)
      • getDouble

        public double getDouble​(String fieldName)
      • setDouble

        public void setDouble​(String fieldName,
                              double value)
      • getInt

        public int getInt​(String fieldName)
      • setInt

        public void setInt​(String fieldName,
                           int value)
      • handleException

        protected void handleException​(Throwable cause)
        Parameters:
        cause -