public class StringBoundedRangeIterator extends StringPrefixIterator
Modifier and Type | Field and Description |
---|---|
protected String |
endMatch |
protected boolean |
endPrefixInclusive |
protected String |
startMatch |
cachedNext, done, inner, prefix, truncated
Constructor and Description |
---|
StringBoundedRangeIterator(Iterator<String> inner,
String startMatch,
String endMatch,
boolean endPrefixInclusive) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
close, getTotalMatches, isTruncated, next, remove
protected String startMatch
protected String endMatch
protected boolean endPrefixInclusive
public StringBoundedRangeIterator(Iterator<String> inner, String startMatch, String endMatch, boolean endPrefixInclusive)
inner
- - underlying cdx line iteratorstartMatch
- - string match to start with (inclusive)endMatch
- - end match to end with (exclusive or inclusive)endPrefixInclusive
- - specify if end match is exclusive or inclusive (if inclusive, use startsWith to check the end)public boolean hasNext()
hasNext
in interface Iterator<String>
hasNext
in class StringPrefixIterator
Copyright © 2005–2015 IIPC. All rights reserved.