Class SerializableString
- java.lang.Object
-
- it.unive.lisa.outputs.serializableGraph.SerializableValue
-
- it.unive.lisa.outputs.serializableGraph.SerializableString
-
- All Implemented Interfaces:
java.lang.Comparable<SerializableValue>
public class SerializableString extends SerializableValue
A single serializable value, represented in its textual form.
-
-
Constructor Summary
Constructors Constructor Description SerializableString()
Builds an empty (invalid) string.SerializableString(java.util.SortedMap<java.lang.String,java.lang.String> properties, java.lang.String value)
Builds a string.
-
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.Collection<SerializableValue>
getInnerValues()
Yields all theSerializableValue
s that are contained into this one, recursively.java.lang.String
getValue()
Yields the textual representation of the value.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class it.unive.lisa.outputs.serializableGraph.SerializableValue
getProperties, setProperty
-
-
-
-
Constructor Detail
-
SerializableString
public SerializableString()
Builds an empty (invalid) string.
-
SerializableString
public SerializableString(java.util.SortedMap<java.lang.String,java.lang.String> properties, java.lang.String value)
Builds a string.- Parameters:
properties
- the additional properties to use as metadatavalue
- the textual representation of the value
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Yields the textual representation of the value.- Returns:
- the text
-
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
-
-