public boolean equals(Object o, boolean ignoreBias) { if (o instanceof FormatTokenPosition) { FormatTokenPosition tp = (FormatTokenPosition) o; return token == tp.getToken() && offset == tp.getOffset() && (ignoreBias || bias == tp.getBias()); } return false; }
public boolean equals(Object o, boolean ignoreBias) { if (o instanceof FormatTokenPosition) { FormatTokenPosition tp = (FormatTokenPosition)o; return token == tp.getToken() && offset == tp.getOffset() && (ignoreBias || bias == tp.getBias()); } return false; }
/** * Get the next successive token-position after the given one. Use the same * bias like the given position has. */ public FormatTokenPosition getNextPosition(FormatTokenPosition pos) { return getNextPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }
/** Get the next successive token-position after the given one. * Use the same bias like the given position has. */ public FormatTokenPosition getNextPosition(FormatTokenPosition pos) { return getNextPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }
/** * Get the token-position preceeding the given one. Use the same bias like * the given position has. */ public FormatTokenPosition getPreviousPosition(FormatTokenPosition pos) { return getPreviousPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }
/** Get the token-position preceeding the given one. Use the same * bias like the given position has. */ public FormatTokenPosition getPreviousPosition(FormatTokenPosition pos) { return getPreviousPosition(pos.getToken(), pos.getOffset(), pos.getBias()); }