T
- public abstract class AbstractPushbackSequence<T> extends Object implements PushbackSequence<T>
PushbackSequence
in regards to iterating strings. The final Impl is intended for the user to supply
a type T such that the pushback interface can be utilized for sequences
of type T. Presently this generic class is limited by the fact that
input is a String.Modifier and Type | Field and Description |
---|---|
protected int |
index |
protected String |
input |
protected int |
mark |
protected T |
pushback |
protected T |
temp |
Constructor and Description |
---|
AbstractPushbackSequence(String input) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Determine if this sequence has another element.
|
int |
index()
Get the current index of the PushbackString.
|
void |
pushback(T c) |
protected String input
protected T pushback
protected T temp
protected int index
protected int mark
public AbstractPushbackSequence(String input)
public void pushback(T c)
pushback
in interface PushbackSequence<T>
public int index()
index
in interface PushbackSequence<T>
public boolean hasNext()
hasNext
in interface PushbackSequence<T>
Copyright © 2022 The Open Web Application Security Project (OWASP). All rights reserved.