Class RMKey

java.lang.Object
com.reportmill.base.RMKey

public class RMKey extends Object
This class provides an optimized convenience for getting named values from arbitrary objects.
  • Constructor Details

    • RMKey

      public RMKey()
  • Method Details

    • valueForKey

      public static Object valueForKey(Object anObj, String aKey)
      Returns value for aKey from anObj, where aKey is expected to be a public method name, ivar, Map key, etc.
    • setValueForKey

      public static void setValueForKey(Object anObj, String aKey, Object aValue)
    • stringValueForKey

      public static String stringValueForKey(Object anObj, String aKey)
      Returns a string value for a key.
    • intValueForKey

      public static int intValueForKey(Object anObj, String aKey)
      Returns an int value for a key.