Class CodepointIteratorRestricted
java.lang.Object
com.helger.commons.text.codepoint.DelegatingCodepointIterator
com.helger.commons.text.codepoint.CodepointIteratorRestricted
- All Implemented Interfaces:
ICodepointIterator,Iterator<Codepoint>
- Author:
- Apache Abdera
-
Constructor Summary
ConstructorsConstructorDescriptionCodepointIteratorRestricted(AbstractCodepointIterator aInternal, IntPredicate aFilter) CodepointIteratorRestricted(AbstractCodepointIterator aInternal, IntPredicate aFilter, boolean bScanningOnly) CodepointIteratorRestricted(AbstractCodepointIterator aInternal, IntPredicate aFilter, boolean bScanningOnly, boolean bInvert) -
Method Summary
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, restrictMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
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 Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceICodepointIterator- Specified by:
hasNextin interfaceIterator<Codepoint>- Overrides:
hasNextin classDelegatingCodepointIterator- Returns:
trueif there are codepoints remaining
-
next
- Specified by:
nextin interfaceICodepointIterator- Specified by:
nextin interfaceIterator<Codepoint>- Overrides:
nextin classDelegatingCodepointIterator- Returns:
- the next codepoint
-
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
-