public class AccessUtil
extends java.lang.Object
Constructor and Description |
---|
AccessUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(java.lang.String name,
java.util.Map accessPoints)
tests if this map contains an access point with the given name.
|
static java.lang.String[] |
getAccessPointNames(java.util.Map accessPoints) |
static AccessPoint[] |
getAccessPoints(java.util.Map accessPoints) |
static java.lang.Object[] |
getAccessPointValues(java.util.Map accessPoints) |
static boolean |
getBooleanValue(java.lang.String name,
java.util.Map accessPoints)
Convenience method to retrieve the boolean value of an access point with a given name from the map.
|
static double |
getDoubleValue(java.lang.String name,
java.util.Map accessPoints)
Convenience method to retrieve the double value of an access point with a given name from the map.
|
static int |
getIndexof(java.lang.String searchedName,
java.util.Map accessPoints) |
static int |
getIntValue(java.lang.String name,
java.util.Map accessPoints)
Convenience method to retrieve the int value of an access point with a given name from the map.
|
static java.lang.String |
getStringValue(java.lang.String name,
java.util.Map accessPoints)
Convenience method to retrieve the String value of an access point with a given name from the map.
|
static java.util.concurrent.TimeUnit |
getTimeUnitValue(java.lang.String name,
java.util.Map accessPoints)
Convenience method to retrieve the TimeUnit value of an access point with a given name from the map.
|
static java.lang.Object |
getValue(java.lang.String name,
java.util.Map accessPoints)
Retrieves the value of an access point with a given name from the map.
|
static void |
init(java.util.Map accessPoints,
java.util.Map m)
Inits the values of all access points in the given map from a map
of values.
|
static boolean |
isMutable(java.lang.String name,
java.util.Map accessPoints)
tests if the access point with the given name is mutable.
|
static void |
put(java.util.Map accessPoints,
AccessPoint apt)
Put an access point into the given map.
|
static boolean |
setValue(java.util.Map accessPoints,
java.lang.String accName,
java.lang.Object value)
sets the specified access point to the given value.
|
public static void put(java.util.Map accessPoints, AccessPoint apt)
accessPoints
- a map containing apt
- an access point to be added to the map.public static java.lang.Object getValue(java.lang.String name, java.util.Map accessPoints)
name
- name of an access pointaccessPoints
- map containing public static java.lang.String getStringValue(java.lang.String name, java.util.Map accessPoints)
name
- name of an access pointaccessPoints
- map containing public static java.util.concurrent.TimeUnit getTimeUnitValue(java.lang.String name, java.util.Map accessPoints)
name
- name of an access pointaccessPoints
- map containing public static boolean getBooleanValue(java.lang.String name, java.util.Map accessPoints)
name
- name of an access pointaccessPoints
- map containing public static int getIntValue(java.lang.String name, java.util.Map accessPoints)
name
- name of an access pointaccessPoints
- map containing public static double getDoubleValue(java.lang.String name, java.util.Map accessPoints)
name
- name of an access pointaccessPoints
- map containing public static java.lang.String[] getAccessPointNames(java.util.Map accessPoints)
public static int getIndexof(java.lang.String searchedName, java.util.Map accessPoints)
searchedName
- an access point name.public static java.lang.Object[] getAccessPointValues(java.util.Map accessPoints)
public static AccessPoint[] getAccessPoints(java.util.Map accessPoints)
public static boolean contains(java.lang.String name, java.util.Map accessPoints)
name
- an access point's namemap
- a map containing access pointspublic static boolean isMutable(java.lang.String name, java.util.Map accessPoints)
name
- an access point's nameaccessPoints
- a map containing access pointspublic static boolean setValue(java.util.Map accessPoints, java.lang.String accName, java.lang.Object value)
accName
- the name of the access point to changevalue
- the value to set the accessed attribute to.accessPoints
- a map containing access pointspublic static void init(java.util.Map accessPoints, java.util.Map m)
accessPoints
- a map containing access pointsm
- a java.util.Map to initialize the given map of access points from.