Interface StringIndex

    • Method Detail

      • stringToIndex

        int stringToIndex​(String string)
                   throws IllegalArgumentException
        Returns the index for a given string. If the given string is not already indexed, the implementation can either automatically index it or throw an exception.
        Parameters:
        string - the indexed (or to be indexed) string
        Returns:
        index of the string
        Throws:
        IllegalArgumentException - if the string is not (and can not be) indexed