public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static org.joda.time.LocalTime |
getEndTime(String time) |
static String |
getProperty(Map<String,String> properties,
String key) |
static org.joda.time.LocalTime |
getStartTime(String time) |
static Map<String,String> |
matchingSubset(Map<String,String> properties,
String prefix,
boolean keepPrefix)
Extracts a specific property key subset from the map passed.
|
static Map<String,String> |
toMap(Dictionary<String,?> dictionary) |
public static Map<String,String> toMap(Dictionary<String,?> dictionary)
public static Map<String,String> matchingSubset(Map<String,String> properties, String prefix, boolean keepPrefix)
prefix - is the key prefix to filter the map keys by.keepPrefix - if true, the key prefix is kept in the resulting map.
As side-effect, a key that matches the prefix exactly will
also be copied. If false, the resulting dictionary's keys are
shortened by the prefix. An exact prefix match will not be
copied, as it would result in an empty string key.Map.get() is used to assemble matchespublic static org.joda.time.LocalTime getStartTime(String time)
public static org.joda.time.LocalTime getEndTime(String time)
Copyright © 2015. All Rights Reserved.