Package org.jparsec
Class Operators.Suite
- java.lang.Object
-
- org.jparsec.Operators.Suite
-
- Enclosing class:
- Operators
private static final class Operators.Suite extends java.lang.Object
A suite is a list of overlapping operators, where some operators are prefixes of other operators. If operator foo is a prefix of operator bar, it is listed after bar.For example ["==", "="]. Empty strings are ignored.
Upon a new string is added, We scan from the end of the list until a string is found to contain it, in which case, the new string is added right after the position.
With the critical requirement that longer strings are added before shorter ones, prefixes are always inserted later than prefixees.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.ArrayList<java.lang.String>
list
-
Constructor Summary
Constructors Constructor Description Suite(java.lang.String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
add(java.lang.String v)
-