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 interfaceThis interface is implemented by objects that want to handle getting key values themselves.static interfaceThis interface is implemented by objects that want to handle getting keychain values themselves. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intintValueForKey(Object anObj, String aKey) Returns an int value for a key.static voidsetValueForKey(Object anObj, String aKey, Object aValue) static StringstringValueForKey(Object anObj, String aKey) Returns a string value for a key.static ObjectvalueForKey(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.
-