Package io.quarkus.runtime.configuration
Class NameIterator
java.lang.Object
io.quarkus.runtime.configuration.NameIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Configuration key maximum allowed length. -
Constructor Summary
ConstructorsConstructorDescriptionNameIterator
(String name) NameIterator
(String name, boolean startAtEnd) NameIterator
(String name, int pos) -
Method Summary
Modifier and TypeMethodDescriptiongetAllPreviousSegmentsWith
(String suffix) getName()
int
int
Get the cursor position.int
void
goToEnd()
void
boolean
hasNext()
boolean
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) toString()
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTHConfiguration key maximum allowed length.- See Also:
-
-
Constructor Details
-
NameIterator
-
NameIterator
-
NameIterator
-
-
Method Details
-
goToEnd
public void goToEnd() -
goToStart
public void goToStart() -
getPosition
public int getPosition()Get the cursor position. It will be-1
if the cursor is at the beginning of the string, orname.length()
if it is at the end.- Returns:
- the cursor position
-
getPreviousStart
public int getPreviousStart() -
getNextEnd
public int getNextEnd() -
nextSegmentEquals
-
nextSegmentEquals
-
getNextSegment
-
previousSegmentEquals
-
previousSegmentEquals
-
getPreviousSegment
-
getAllPreviousSegments
-
getAllPreviousSegmentsWith
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious() -
next
public void next() -
previous
public void previous() -
getName
-
toString
-