Package org.jparsec

Class 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 adding v 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Suites

        private Suites()
    • Method Detail

      • add

        void add​(java.lang.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

        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.