public final class PropertyMaps
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static PropertyMap.Builder | 
builder()
Returns a builder object for creating  
PropertyMap instances. | 
static PropertyMap | 
emptyPropertyMap()
Return the empty property map. 
 | 
static PropertyMap | 
fromJSON(java.lang.String json)
Create a property map from its JSON-serialized form. 
 | 
static PropertyMap | 
loadJSON(java.io.File file)
Create a property map from its JSON-serialized form stored in a file. 
 | 
public static PropertyMap.Builder builder()
PropertyMap instances.
 Create property maps like this:
 
 PropertyMap myPropertyMap = PropertyMaps.builder().
       putString("first name", "Jane").
       putString("last name", "Smith").
       putInteger("age", 32).
       build();
 public static PropertyMap emptyPropertyMap()
public static PropertyMap fromJSON(java.lang.String json) throws java.io.IOException
json - json formatted String to be converted into a PropertyMapjava.io.IOException - if json is invalid JSON or if it does not
 represent a valid property mappublic static PropertyMap loadJSON(java.io.File file) throws java.io.IOException
file - java.io.IOException - if there was a problem reading file or if the
 file contained invalid JSON or if the JSON did not represent a valid
 property mapjava.io.FileNotFoundException - this subclass of IOException
 is thrown if file does not exist