|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.grails.plugin.vaadin.utils.Utils
class Utils
Utility methods for Vaadin classes.
Constructor Summary | |
Utils()
|
Method Summary | |
---|---|
static boolean
|
containsKeyCaseInsensitive(Map props, Object key)
Case insensitive containsKey() on map. |
static Object
|
getCaseInsensitive(Map props, Object key)
Case insensitive get() on map. |
static Class
|
getCommonSuperclass(Object value)
Gets superclass that all members of specified collection have in common |
static boolean
|
isNumber(def value)
Checks if the value is a number |
static Map
|
removeAllCaseInsensitive(Map props, def keys)
Removes all entries matching the case-insensitive keys. |
static Object
|
removeCaseInsensitive(Map props, Object key)
Removes all entries matching the case-insensitive key. |
static int
|
toInt(def value)
Converts the value to an int, if not already. |
static String
|
toString(def obj)
Converts an object to a String. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
Utils()
Method Detail |
---|
static boolean containsKeyCaseInsensitive(Map props, Object key)
key
- The key to lookup
static Object getCaseInsensitive(Map props, Object key)
key
- The key to lookup
static Class getCommonSuperclass(Object value)
static boolean isNumber(def value)
static Map removeAllCaseInsensitive(Map props, def keys)
props
- The map from which entries are to be removedkeys
- The keys to lookup
static Object removeCaseInsensitive(Map props, Object key)
props
- The map from which entries are to be removedkey
- The key to lookup
static int toInt(def value)
static String toString(def obj)
obj
- The object to stringify
Groovy Documentation