Package io.quarkus.runtime.configuration
Class NameIterator
- java.lang.Object
-
- io.quarkus.runtime.configuration.NameIterator
-
public final class NameIterator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_LENGTHConfiguration key maximum allowed length.
-
Constructor Summary
Constructors Constructor Description NameIterator(String name)NameIterator(String name, boolean startAtEnd)NameIterator(String name, int pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAllPreviousSegments()StringgetAllPreviousSegmentsWith(String suffix)StringgetName()intgetNextEnd()StringgetNextSegment()intgetPosition()Get the cursor position.StringgetPreviousSegment()intgetPreviousStart()voidgoToEnd()voidgoToStart()booleanhasNext()booleanhasPrevious()voidnext()booleannextSegmentEquals(String other)booleannextSegmentEquals(String other, int offs, int len)voidprevious()booleanpreviousSegmentEquals(String other)booleanpreviousSegmentEquals(String other, int offs, int len)StringtoString()
-
-
-
Field Detail
-
MAX_LENGTH
public static final int MAX_LENGTH
Configuration key maximum allowed length.- See Also:
- Constant Field Values
-
-
Method Detail
-
goToEnd
public void goToEnd()
-
goToStart
public void goToStart()
-
getPosition
public int getPosition()
Get the cursor position. It will be-1if 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
public boolean nextSegmentEquals(String other)
-
nextSegmentEquals
public boolean nextSegmentEquals(String other, int offs, int len)
-
getNextSegment
public String getNextSegment()
-
previousSegmentEquals
public boolean previousSegmentEquals(String other)
-
previousSegmentEquals
public boolean previousSegmentEquals(String other, int offs, int len)
-
getPreviousSegment
public String getPreviousSegment()
-
getAllPreviousSegments
public String getAllPreviousSegments()
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
-
next
public void next()
-
previous
public void previous()
-
getName
public String getName()
-
-