| java.lang.Object org.apache.hivemind.HiveMind
HiveMind | final public class HiveMind (Code) | | Static utility class for HiveMind.
author: Howard Lewis Ship |
INTROSPECTOR_MUTEX | final public static Object INTROSPECTOR_MUTEX(Code) | | An object used to synchronize access to
java.beans.Introspector (which is not fully
threadsafe).
since: 1.1 |
findLocation | public static Location findLocation(Object[] locations)(Code) | | Selects the first
Location in an array of objects. Skips over nulls. The objects may
be instances of Location or
Locatable . May return null if no Location can be found.
|
getLocation | public static Location getLocation(Object object)(Code) | | Extracts a location from an object, checking to see if it implement
Location or
Locatable .
the Location, or null if it can't be found |
isBlank | public static boolean isBlank(String string)(Code) | | Returns true if the string is null, empty, or contains only whitespace.
The commons-lang library provides a version of this, but the naming and behavior changed
between 1.0 and 2.0, which causes some dependency issues.
|
isEmpty | public static boolean isEmpty(Collection c)(Code) | | Returns true if the Collection is null or empty.
|
setLocation | public static void setLocation(Object holder, Location location)(Code) | | Updates the location of an object, if the object implements
LocationHolder .
Parameters: holder - the object to be updated Parameters: location - the location to assign to the holder object |
|
|