Class ALabel.EmptyLabel
java.lang.Object
it.univr.di.labeledvalue.ALabel
it.univr.di.labeledvalue.ALabel.EmptyLabel
- All Implemented Interfaces:
Serializable
,Comparable<ALabel>
,Iterable<ALabelAlphabet.ALetter>
- Enclosing class:
ALabel
An unmodifiable empty label.
- Version:
- $Rev: 887 $
- Author:
- posenato
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.univr.di.labeledvalue.ALabel
ALabel.EmptyLabel, ALabel.State
-
Field Summary
Fields inherited from class it.univr.di.labeledvalue.ALabel
ALABEL_RE, ALABEL_SEPARATOR, ALABEL_SEPARATORstring, emptyLabel, labelValidator, MAX_ALABELALPHABET_SIZE, modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
In order to speed up this method and considering that theALabelAlphabet
order may be not the expected alphabetic one, (first letter in anALabelAlphabet
can be 'nodeZ' and the last one 'aNode'), the order of labels is given w.r.t. their indexes in theirALabelAlphabet
.boolean
conjoin
(ALabelAlphabet.ALetter aLetter) Conjoinsa-letter
to this.conjunction
(ALabel label) Conjoinsa-label
tothis
and returns the result without modifyingthis
.boolean
L1 contains L2 if L1 contains all a-letters of L2.boolean
contains
(ALabelAlphabet.ALetter letter) boolean
int
hashCode()
boolean
isEmpty()
iterator()
void
remove
(ALabelAlphabet.ALetter letter) It removes a-letter if it is present, otherwise it does nothing.void
remove
(ALabelAlphabet.ALetter[] letter) It removes all a-letters in inputSet from the current label.int
size()
toString()
Methods inherited from class it.univr.di.labeledvalue.ALabel
clear, clone, equals, getALetter, getAlphabet, getLetter, getState, intersect, parse, put, remove, remove, toLowerCase, toUpperCase
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EmptyLabel
public EmptyLabel()default constructor
-
-
Method Details
-
isEmpty
-
conjoin
Description copied from class:ALabel
Conjoinsa-letter
to this. -
compareTo
Description copied from class:ALabel
In order to speed up this method and considering that theALabelAlphabet
order may be not the expected alphabetic one, (first letter in anALabelAlphabet
can be 'nodeZ' and the last one 'aNode'), the order of labels is given w.r.t. their indexes in theirALabelAlphabet
.- Specified by:
compareTo
in interfaceComparable<ALabel>
- Overrides:
compareTo
in classALabel
-
equals
-
hashCode
-
conjunction
Description copied from class:ALabel
Conjoinsa-label
tothis
and returns the result without modifyingthis
.- Overrides:
conjunction
in classALabel
- Parameters:
label
- the label to conjoin- Returns:
- a new label with the conjunction of 'this' and 'label'. Regurns null if this cannot conjuncted with label.
-
contains
-
contains
-
size
-
toString
-
iterator
- Specified by:
iterator
in interfaceIterable<ALabelAlphabet.ALetter>
- Overrides:
iterator
in classALabel
-
remove
Description copied from class:ALabel
It removes a-letter if it is present, otherwise it does nothing. -
remove
Description copied from class:ALabel
It removes all a-letters in inputSet from the current label.
-