Class LastHead

  • All Implemented Interfaces:
    Head

    final class LastHead
    extends java.lang.Object
    implements Head
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static Head INSTANCE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LastHead()
      Don't call this constructor, use INSTANCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Head> getNextHeads​(char c)
      Get the character which decides which heads are returned
      • Methods inherited from class java.lang.Object

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

      • INSTANCE

        static final Head INSTANCE
    • Constructor Detail

      • LastHead

        private LastHead()
        Don't call this constructor, use INSTANCE
    • Method Detail

      • getNextHeads

        public java.util.List<Head> getNextHeads​(char c)
        Get the character which decides which heads are returned
        Specified by:
        getNextHeads in interface Head
        Parameters:
        c - the character which decides which heads are returned.
        Returns:
        a list of heads based on the input.