Class SerializableObject
- java.lang.Object
-
- it.unive.lisa.outputs.serializableGraph.SerializableValue
-
- it.unive.lisa.outputs.serializableGraph.SerializableObject
-
- All Implemented Interfaces:
java.lang.Comparable<SerializableValue>
public class SerializableObject extends SerializableValue
A complex serializable object, represented through a set of named serializable fields.
-
-
Constructor Summary
Constructors Constructor Description SerializableObject()
Builds an empty object.SerializableObject(java.util.SortedMap<java.lang.String,java.lang.String> properties, java.util.SortedMap<java.lang.String,SerializableValue> fields)
Builds an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SerializableValue o)
boolean
equals(java.lang.Object obj)
java.util.SortedMap<java.lang.String,SerializableValue>
getFields()
Yields the fields of this object.java.util.Collection<SerializableValue>
getInnerValues()
Yields all theSerializableValue
s that are contained into this one, recursively.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class it.unive.lisa.outputs.serializableGraph.SerializableValue
getProperties, setProperty
-
-
-
-
Constructor Detail
-
SerializableObject
public SerializableObject()
Builds an empty object.
-
SerializableObject
public SerializableObject(java.util.SortedMap<java.lang.String,java.lang.String> properties, java.util.SortedMap<java.lang.String,SerializableValue> fields)
Builds an object.- Parameters:
properties
- the additional properties to use as metadatafields
- the fields of this object
-
-
Method Detail
-
getFields
public java.util.SortedMap<java.lang.String,SerializableValue> getFields()
Yields the fields of this object.- Returns:
- the fields
-
getInnerValues
public java.util.Collection<SerializableValue> getInnerValues()
Description copied from class:SerializableValue
Yields all theSerializableValue
s that are contained into this one, recursively. The receiver of this call is always excluded by the returned collection.- Specified by:
getInnerValues
in classSerializableValue
- Returns:
- the values contained into this one, recursively
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSerializableValue
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSerializableValue
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(SerializableValue o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SerializableValue>
- Overrides:
compareTo
in classSerializableValue
-
-