public class GlobalIdFactory extends Object
Constructor and Description |
---|
GlobalIdFactory() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
decode(String globalId,
List<String> keys)
Decode the given String to a Map of values.
|
static String |
encode(List<String> keys,
Map<String,String> values)
Encode the given Map of values to a String.
|
public static String encode(List<String> keys, Map<String,String> values)
keys
- the order in which the keys will be appended to the resultvalues
- the values to encode as a Stringpublic static Map<String,String> decode(String globalId, List<String> keys)
globalId
- the String to decodekeys
- the order in which the keys should appear. If the keys are not in this order an IllegalArgumentException is thrown.Copyright © 2002-2015 Atlassian. All Rights Reserved.