Modifier | Constructor and Description |
---|---|
protected |
DataContainer(net.hamnaberg.json.Json.JObject delegate) |
Modifier and Type | Method and Description |
---|---|
A |
add(Property property)
Adds a property to the data.
|
A |
addAll(Iterable<Property> toAdd)
Adds properties to the data.
|
Optional<Property> |
findProperty(Predicate<Property> predicate) |
Data |
getData() |
Map<String,Property> |
getDataAsMap() |
Optional<Property> |
propertyByName(String name) |
A |
replace(Property property)
Replaces all properties with the same name as the supplied property
|
A |
set(Iterable<Property> props)
Replaces all properties.
|
apply, asJson, copy, equals, getAsString, getExtension, hashCode, validate
public Data getData()
public A replace(Property property)
property
- property to replace withpublic A add(Property property)
property
- the property to addpublic A addAll(Iterable<Property> toAdd)
toAdd
- the properties to addCopyright © 2011–2015. All rights reserved.