public class SnakGroupFromJson extends Object implements SnakGroup
SnakGroup deserialized from JSON. The
actual data is part of a map of lists of JacksonSnak objects in JSON,
so there is no corresponding JSON object.| Constructor and Description |
|---|
SnakGroupFromJson(List<JacksonSnak> snaks) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
PropertyIdValue |
getProperty()
Get the property used by each snak in this group.
|
List<Snak> |
getSnaks()
Get the list of Snaks of this group.
|
int |
hashCode() |
Iterator<Snak> |
iterator() |
static List<SnakGroup> |
makeSnakGroups(Map<String,List<JacksonSnak>> snaks,
List<String> propertyOrder)
Construct a list of
SnakGroup objects from a map from property
ids to snak lists as found in JSON. |
String |
toString() |
public SnakGroupFromJson(List<JacksonSnak> snaks)
public List<Snak> getSnaks()
SnakGrouppublic PropertyIdValue getProperty()
SnakGroupgetProperty in interface SnakGrouppublic static List<SnakGroup> makeSnakGroups(Map<String,List<JacksonSnak>> snaks, List<String> propertyOrder)
SnakGroup objects from a map from property
ids to snak lists as found in JSON.snaks - the map with the dataCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage