public class Parsed<T> extends Object
Constructor and Description |
---|
Parsed(T value,
int pos)
Constructs a new Parsed object to record the given fields.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares some other object to this one for equality.
|
int |
getPos()
Gets the position from which parsing should resume.
|
T |
getValue()
Gets the parsed value.
|
int |
hashCode()
Gets a hash code value for this object.
|
String |
toString()
Returns a printable representation of this, in the form "{value,pos}".
|
public Parsed(T value, int pos)
value
- the parsed valuepos
- the position from which parsing should resumepublic T getValue()
public int getPos()
public boolean equals(Object o)
public int hashCode()