Class CodepointIteratorRestricted
- java.lang.Object
-
- com.helger.commons.text.codepoint.DelegatingCodepointIterator
-
- com.helger.commons.text.codepoint.CodepointIteratorRestricted
-
- All Implemented Interfaces:
ICodepointIterator,Iterator<Codepoint>
public class CodepointIteratorRestricted extends DelegatingCodepointIterator
- Author:
- Apache Abdera
-
-
Constructor Summary
Constructors Constructor Description CodepointIteratorRestricted(AbstractCodepointIterator aInternal, IntPredicate aFilter)CodepointIteratorRestricted(AbstractCodepointIterator aInternal, IntPredicate aFilter, boolean bScanningOnly)CodepointIteratorRestricted(AbstractCodepointIterator aInternal, IntPredicate aFilter, boolean bScanningOnly, boolean bInvert)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Codepointnext()char[]nextChars()-
Methods inherited from class com.helger.commons.text.codepoint.DelegatingCodepointIterator
get, get, getInternalIterator, isHigh, isLow, lastPosition, limit, peek, peek, peekChars, position, position, remaining, remove, restrict, restrict, restrict
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
CodepointIteratorRestricted
public CodepointIteratorRestricted(@Nonnull AbstractCodepointIterator aInternal, @Nonnull IntPredicate aFilter)
-
CodepointIteratorRestricted
public CodepointIteratorRestricted(@Nonnull AbstractCodepointIterator aInternal, @Nonnull IntPredicate aFilter, boolean bScanningOnly)
-
CodepointIteratorRestricted
public CodepointIteratorRestricted(@Nonnull AbstractCodepointIterator aInternal, @Nonnull IntPredicate aFilter, boolean bScanningOnly, boolean bInvert)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceICodepointIterator- Specified by:
hasNextin interfaceIterator<Codepoint>- Overrides:
hasNextin classDelegatingCodepointIterator- Returns:
trueif there are codepoints remaining
-
next
public Codepoint next()
- Specified by:
nextin interfaceICodepointIterator- Specified by:
nextin interfaceIterator<Codepoint>- Overrides:
nextin classDelegatingCodepointIterator- Returns:
- the next codepoint
-
nextChars
@Nullable public char[] nextChars()
- Specified by:
nextCharsin interfaceICodepointIterator- Overrides:
nextCharsin classDelegatingCodepointIterator- Returns:
- the next chars. If the codepoint is not supplemental, the char array will have a single member. If the codepoint is supplemental, the char array will have two members, representing the high and low surrogate chars
-
-