Returns the i th smallest suffix as a string. @param i the index @return the i smallest suffix as a string @throws java.lang.IllegalArgumentException unless 0 <= i < n
(int i)
| 156 | * @throws java.lang.IllegalArgumentException unless {@code 0 <= i < n} |
| 157 | */ |
| 158 | public String select(int i) { |
| 159 | if (i < 0 || i >= suffixes.length) throw new IllegalArgumentException(); |
| 160 | return suffixes[i].toString(); |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Returns the number of suffixes strictly less than the {@code query} string. |