public final class RobotUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getParameterValue(String[] params,
int index,
T defaultValue)
Get optional parameter value from given parameter array.
|
static boolean |
isDictionary(String string)
Checks whether string value structure equals to dictionary value.
|
static Map<String,String> |
parseDictionary(String string)
Parser given string value into Map (dictionary).
|
public static <T> T getParameterValue(String[] params, int index, T defaultValue)
T - This is the type parameter for the valueparams - - Parameter arrayindex - - Parameter index to returndefaultValue - - Default value to return if parameter does not exists in given index or its value is null.public static boolean isDictionary(String string)
string - - String to checktrue if string value equals to dictionary structure.Copyright © 2019. All rights reserved.