Package com.reportmill.base
Class RMKey
java.lang.Object
com.reportmill.base.RMKey
This class provides an optimized convenience for getting named values from arbitrary objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
This interface is implemented by objects that want to handle getting key values themselves.static interface
This interface is implemented by objects that want to handle getting keychain values themselves. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
intValueForKey
(Object anObj, String aKey) Returns an int value for a key.static void
setValueForKey
(Object anObj, String aKey, Object aValue) static String
stringValueForKey
(Object anObj, String aKey) Returns a string value for a key.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.
-
Constructor Details
-
RMKey
public RMKey()
-
-
Method Details
-
valueForKey
Returns value for aKey from anObj, where aKey is expected to be a public method name, ivar, Map key, etc. -
setValueForKey
-
stringValueForKey
Returns a string value for a key. -
intValueForKey
Returns an int value for a key.
-