Class SimpleOrderFactory


  • public class SimpleOrderFactory
    extends java.lang.Object
    Author:
    stm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Order getInstance​(java.lang.String text)
      Creates an order consisting of just one token.
      Order getInstance​(java.util.List<OrderToken> tokens, java.lang.String text)
      Creates a new order from a list of tokens.
      • Methods inherited from class java.lang.Object

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

      • SimpleOrderFactory

        public SimpleOrderFactory()
    • Method Detail

      • getInstance

        public Order getInstance​(java.lang.String text)
        Creates an order consisting of just one token.
        Parameters:
        text - The complete text of the order
      • getInstance

        public Order getInstance​(java.util.List<OrderToken> tokens,
                                 java.lang.String text)
        Creates a new order from a list of tokens.
        Parameters:
        tokens - The sequence of order tokens
        text - The complete text of the order