Uses of Class
com.gengoai.json.JsonEntry
-
Packages that use JsonEntry Package Description com.gengoai.collection.counter Contains implementations for Counters and MultiCounters that are specialized object-double and object-object-double maps.com.gengoai.config Configuration based on json-like syntax that integrates with command line parser, applications, and loggingcom.gengoai.graph com.gengoai.json Xml StructuredFormat reader and writer -
-
Uses of JsonEntry in com.gengoai.collection.counter
Methods in com.gengoai.collection.counter that return JsonEntry Modifier and Type Method Description default JsonEntry
MultiCounter. toJson()
-
Uses of JsonEntry in com.gengoai.config
Methods in com.gengoai.config that return JsonEntry Modifier and Type Method Description JsonEntry
Config. toJson()
Methods in com.gengoai.config with parameters of type JsonEntry Modifier and Type Method Description static Config
Config. fromJson(JsonEntry entry, Type... params)
Static method allowing the Config to be deserialized from Json -
Uses of JsonEntry in com.gengoai.graph
Methods in com.gengoai.graph with parameters of type JsonEntry Modifier and Type Method Description DirectedEdge<V>
DirectedEdgeFactory. createEdge(V from, V to, JsonEntry entry)
Edge<V>
EdgeFactory. createEdge(V from, V to, JsonEntry entry)
Creates an edge between the from and to vertices filling in any given edge properties (e.g.UndirectedEdge<V>
UndirectedEdgeFactory. createEdge(V from, V to, JsonEntry entry)
-
Uses of JsonEntry in com.gengoai.json
Methods in com.gengoai.json that return JsonEntry Modifier and Type Method Description JsonEntry
JsonEntry. addProperty(@NonNull String name, Object value)
Adds a property to the entry checking that it is a json objectJsonEntry
JsonEntry. addValue(Object value)
Adds a value to the entry checking that it is a json arraystatic JsonEntry
JsonEntry. array(Iterable<?> items)
Array json entry.static JsonEntry
JsonEntry. array(Object... items)
Creates a new arraystatic JsonEntry
Json. asJsonEntry(Object o)
static JsonEntry
JsonEntry. from(Object v)
Creates an entry from the given object.JsonEntry
JsonEntry. getProperty(String propertyName)
Gets the value of the given property name as a JsonEntryJsonEntry
JsonEntry. getProperty(String propertyName, Object defaultValue)
Gets the value of the given property name as a JsonEntryJsonEntry
JsonEntry. mergeObject(JsonEntry entry)
static JsonEntry
JsonEntry. nullValue()
Creates a null valued entrystatic JsonEntry
JsonEntry. object()
Creates a new empty objectstatic JsonEntry
Json. parse(@NonNull Resource json)
Parses the given resource as json entrystatic JsonEntry
Json. parse(String json)
Parses the json string.Methods in com.gengoai.json that return types with arguments of type JsonEntry Modifier and Type Method Description List<JsonEntry>
JsonEntry. asArray()
Converts the entry into a list of elements checking if the underlying entry is a json array.Map<String,JsonEntry>
JsonEntry. asMap()
Converts the entry into a map of string keys and entry elements checking if the underlying entry is a json object.Iterator<JsonEntry>
JsonEntry. elementIterator()
Gets an iterator over the elements in this element checking if the underlying entry is a json array.Stream<JsonEntry>
JsonEntry. elementStream()
Optional<JsonEntry>
JsonEntry. getOptionalProperty(String propertyName)
static List<JsonEntry>
Json. parseArray(@NonNull Resource resource)
Loads an array of objects from the given resource in json format.static List<JsonEntry>
Json. parseArray(@NonNull String json)
Parses a json string into a list ofJsonEntry
static Map<String,JsonEntry>
Json. parseObject(Resource json)
Quicker method for parsing a json string into aMap
ofString
keys andObject
values.static Map<String,JsonEntry>
Json. parseObject(String json)
Quicker method for parsing a json string into aMap
ofString
keys andObject
values.Iterator<Map.Entry<String,JsonEntry>>
JsonEntry. propertyIterator()
Gets an iterator over the elements in this element.Methods in com.gengoai.json with parameters of type JsonEntry Modifier and Type Method Description JsonEntry
JsonEntry. mergeObject(JsonEntry entry)
Method parameters in com.gengoai.json with type arguments of type JsonEntry Modifier and Type Method Description void
JsonEntry. forEachElement(Consumer<JsonEntry> consumer)
Performs the given action for entry in this array.void
JsonEntry. forEachProperty(BiConsumer<String,JsonEntry> consumer)
Performs the given action for property name and value in this object.
-