public class FirstFromListPosition extends java.lang.Object implements Position
| Constructor and Description |
|---|
FirstFromListPosition(Position[] words) |
FirstFromListPosition(java.lang.String[] words)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
get the length of the position returned by
Position.getPosition(String, int) |
int |
getPosition(java.lang.String line,
int begin)
get a position in a line, not before begin or return -1
|
public FirstFromListPosition(java.lang.String[] words)
words - public FirstFromListPosition(Position[] words)
public int getPosition(java.lang.String line,
int begin)
getPosition in interface Positionline - String, the line to find the position inbegin - int, the location to start frompublic int getLength()
Position.getPosition(String, int)