public final class NameIterator extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_LENGTH
Configuration key maximum allowed length.
|
Constructor and Description |
---|
NameIterator(String name) |
NameIterator(String name,
boolean startAtEnd) |
NameIterator(String name,
int pos) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
int |
getNextEnd() |
String |
getNextSegment() |
int |
getPosition()
Get the cursor position.
|
String |
getPreviousSegment() |
int |
getPreviousStart() |
void |
goToEnd() |
void |
goToStart() |
boolean |
hasNext() |
boolean |
hasPrevious() |
void |
next() |
boolean |
nextSegmentEquals(String other) |
boolean |
nextSegmentEquals(String other,
int offs,
int len) |
void |
previous() |
boolean |
previousSegmentEquals(String other) |
boolean |
previousSegmentEquals(String other,
int offs,
int len) |
String |
toString() |
public static final int MAX_LENGTH
public NameIterator(String name)
public NameIterator(String name, boolean startAtEnd)
public NameIterator(String name, int pos)
public void goToEnd()
public void goToStart()
public int getPosition()
-1
if the cursor is at the beginning of the string, or name.length()
if it is at the end.public int getPreviousStart()
public int getNextEnd()
public boolean nextSegmentEquals(String other)
public boolean nextSegmentEquals(String other, int offs, int len)
public String getNextSegment()
public boolean previousSegmentEquals(String other)
public boolean previousSegmentEquals(String other, int offs, int len)
public String getPreviousSegment()
public boolean hasNext()
public boolean hasPrevious()
public void next()
public void previous()
public String getName()
Copyright © 2019 JBoss by Red Hat. All rights reserved.