Package com.perforce.p4java.common.base
Class P4ResultMapUtils
- java.lang.Object
-
- com.perforce.p4java.common.base.P4ResultMapUtils
-
public final class P4ResultMapUtils extends java.lang.Object
- Since:
- 23/09/2016
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsDescriptionField(java.util.Map<java.lang.String,java.lang.Object> map)
static boolean
hasValidDepotPath(java.util.Map<java.lang.String,java.lang.Object> map)
static boolean
isContainsValidRevisionSpecificInformation(java.util.Map<java.lang.String,java.lang.Object> map)
static java.lang.String
parseCode0ErrorString(java.util.Map<java.lang.String,java.lang.Object> map)
static java.util.List<java.lang.String>
parseDataList(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
static int
parseInt(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
static long
parseLong(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
static java.lang.String
parseString(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
-
-
-
Method Detail
-
parseString
@Nullable public static java.lang.String parseString(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
-
parseCode0ErrorString
@Nullable public static java.lang.String parseCode0ErrorString(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map)
-
parseInt
public static int parseInt(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
- Parameters:
map
- mapkey
- key- Returns:
- value
- Throws:
java.lang.NumberFormatException
- if the string does not contain a parsable integer.
-
parseLong
public static long parseLong(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
- Parameters:
map
- mapkey
- key- Returns:
- value
- Throws:
java.lang.NumberFormatException
- if the string does not contain a parsable integer.
-
hasValidDepotPath
public static boolean hasValidDepotPath(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map)
-
containsDescriptionField
public static boolean containsDescriptionField(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map)
-
isContainsValidRevisionSpecificInformation
public static boolean isContainsValidRevisionSpecificInformation(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map)
-
parseDataList
public static java.util.List<java.lang.String> parseDataList(@Nonnull java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key)
-
-