public class PersistenceUtils extends Object
Constructor and Description |
---|
PersistenceUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
mapAsString(Map<Integer,String> map)
Convert the Map to a String suitable for persisting in the Properties file.
|
static Map<Integer,String> |
parseString(Object property)
Parse the persisted property and create a TreeMap<Integer, String> from it.
|
public static Map<Integer,String> parseString(Object property)
mapAsString(Map)
.property
- from the properties file.public static String mapAsString(Map<Integer,String> map)
parseString(Object)
can be used to reconstruct this Map object from the String.Copyright © 2013. All Rights Reserved.