Package org.jparsec
Class Operators.Suites
- java.lang.Object
-
- org.jparsec.Operators.Suites
-
- Enclosing class:
- Operators
private static final class Operators.Suites extends java.lang.Object
A list of suites in the reverse order of the suites. Suite a is defined to be bigger than suite b if the first element of a is longer than that of b.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<Operators.Suite>
list
-
Constructor Summary
Constructors Modifier Constructor Description private
Suites()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
add(java.lang.String v)
Scans the list of suites by addingv
to the first suite that claims it as a prefix.(package private) java.lang.String[]
toArray()
Collapses the names in each suite by traversing the suites in reverse order, so that smaller suites are collapsed first and generally shorter operators will be placed before longer ones unless it is contained by a longer operator.
-
-
-
Field Detail
-
list
private final java.util.ArrayList<Operators.Suite> list
-
-
Method Detail
-
add
void add(java.lang.String v)
Scans the list of suites by addingv
to the first suite that claims it as a prefix. If no suite claims it as prefix, it is added as a standaloneOperators.Suite
at the end of the list.
-
toArray
java.lang.String[] toArray()
Collapses the names in each suite by traversing the suites in reverse order, so that smaller suites are collapsed first and generally shorter operators will be placed before longer ones unless it is contained by a longer operator.
-
-