Package it.univr.di.labeledvalue
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.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTo speed up this method, and considering that theALabelAlphabetorder may not be the expected alphabetic one (the first letter in anALabelAlphabetcan be 'nodeZ' and the last one 'aNode'), the order of labels is given with respect to their indexes in theirALabelAlphabet.booleanconjoin(ALabelAlphabet.ALetter aLetter) ConjoinsALetterto this.conjunction(ALabel label) ConjoinsALabeltothisand returns the result without modifyingthis.booleanL1 contains L2 if L1 contains all ALetters of L2.booleancontains(ALabelAlphabet.ALetter letter) booleaninthashCode()booleanisEmpty()iterator()voidremove(ALabelAlphabet.ALetter letter) It removes the ALetter if it is present.voidremove(ALabelAlphabet.ALetter[] letter) It removes all ALetters in inputSet from the current label.intsize()toString()Methods inherited from class it.univr.di.labeledvalue.ALabel
clear, clone, equals, getALetter, getAlphabet, getLetter, getState, intersect, parse, put, remove, remove, toLowerCase, toUpperCaseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EmptyLabel
public EmptyLabel()default constructor
-
-
Method Details
-
compareTo
Description copied from class:ALabelTo speed up this method, and considering that theALabelAlphabetorder may not be the expected alphabetic one (the first letter in anALabelAlphabetcan be 'nodeZ' and the last one 'aNode'), the order of labels is given with respect to their indexes in theirALabelAlphabet.- Specified by:
compareToin interfaceComparable<ALabel>- Overrides:
compareToin classALabel
-
conjoin
Description copied from class:ALabelConjoinsALetterto this. -
conjunction
Description copied from class:ALabelConjoinsALabeltothisand returns the result without modifyingthis.- Overrides:
conjunctionin classALabel- Parameters:
label- the label to conjoin- Returns:
- a new label with the conjunction of 'this' and 'label'. Returns null if this cannot be combined with the given label.
-
contains
Description copied from class:ALabelL1 contains L2 if L1 contains all ALetters of L2. -
contains
-
equals
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceIterable<ALabelAlphabet.ALetter>- Overrides:
iteratorin classALabel
-
remove
Description copied from class:ALabelIt removes the ALetter if it is present. Otherwise, it does nothing. -
remove
Description copied from class:ALabelIt removes all ALetters in inputSet from the current label. -
size
public int size() -
toString
-