Interface WordList

  • All Implemented Interfaces:

    
    public interface WordList
    
                        

    A list of preferably unique words as Strings. You can get the size of it and the single entries by their indices.

    A word list should never be empty!

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String get(Integer index) Get the element with the given index.
      abstract Integer getSize() The number of words in this list.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • get

         abstract String get(Integer index)

        Get the element with the given index.

        Parameters:
        index - The index of the element.
      • getSize

         abstract Integer getSize()

        The number of words in this list. Should never be <= 0!