Package org.jparsec

Class Operators.Suites

java.lang.Object
org.jparsec.Operators.Suites
Enclosing class:
Operators

private static final class Operators.Suites extends 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 final ArrayList<Operators.Suite>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    Scans the list of suites by adding v to the first suite that claims it as a prefix.
    (package private) String[]
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Suites

      private Suites()
  • Method Details

    • add

      void add(String v)
      Scans the list of suites by adding v to the first suite that claims it as a prefix. If no suite claims it as prefix, it is added as a standalone Operators.Suite at the end of the list.
    • toArray

      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.