Modifier | Constructor and Description |
---|---|
protected |
NoneVal()
Creates the none value (protected, use the value factory)
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Value o)
Compares the none value to another value
|
Value |
concatenate(Value v)
Returns the value v provided as argument.
|
boolean |
contains(Value subvalue)
True if subvalue is contained in the current instance, and false otherwise
|
NoneVal |
copy()
Returns its own instance
|
boolean |
equals(java.lang.Object o)
Returns true if both values are none
|
java.util.Collection<Value> |
getSubValues()
Returns an empty list
|
int |
hashCode()
Returns a hashcode for the value
|
int |
length()
Returns 0
|
java.lang.String |
toString()
Returns the string "None
|
protected NoneVal()
public int hashCode()
public boolean equals(java.lang.Object o)
public NoneVal copy()
public Value concatenate(Value v)
concatenate
in interface Value
v
- the value to concatenate with the current onepublic java.lang.String toString()
public int compareTo(Value o)
compareTo
in interface java.lang.Comparable<Value>
public boolean contains(Value subvalue)
public java.util.Collection<Value> getSubValues()
getSubValues
in interface Value