Class CharTokenFactory


  • public class CharTokenFactory
    extends Object
    Factory for generating CharToken objects ensuring that only one of any specific CharToken object is created (enforcing CharToken singleton-ness per char value)
    • Constructor Detail

      • CharTokenFactory

        public CharTokenFactory()
    • Method Detail

      • getToken

        public static CharToken getToken​(int ch)
        Parameters:
        ch -
        Returns:
        the token represented by this character