Class SerializableArray
- java.lang.Object
-
- it.unive.lisa.outputs.serializableGraph.SerializableValue
-
- it.unive.lisa.outputs.serializableGraph.SerializableArray
-
- All Implemented Interfaces:
java.lang.Comparable<SerializableValue>
public class SerializableArray extends SerializableValue
An array of serializable values, represented through a list.
-
-
Constructor Summary
Constructors Constructor Description SerializableArray()
Builds the array.SerializableArray(java.util.SortedMap<java.lang.String,java.lang.String> properties, java.util.List<SerializableValue> elements)
Builds the array.
-
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.List<SerializableValue>
getElements()
Yields the elements contained in this array.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
-
SerializableArray
public SerializableArray()
Builds the array.
-
SerializableArray
public SerializableArray(java.util.SortedMap<java.lang.String,java.lang.String> properties, java.util.List<SerializableValue> elements)
Builds the array.- Parameters:
properties
- the additional properties to use as metadataelements
- the elements of the array
-
-
Method Detail
-
getElements
public java.util.List<SerializableValue> getElements()
Yields the elements contained in this array.- Returns:
- the elements
-
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
-
-