Class LazyMatchingTypeIterator<T>
java.lang.Object
org.apache.sshd.common.util.helper.LazyMatchingTypeIterator<T>
- Type Parameters:
T
- Type of iterated element
- All Implemented Interfaces:
Iterator<T>
-
Field Details
-
finished
protected boolean finished -
nextValue
-
values
-
type
-
-
Constructor Details
-
LazyMatchingTypeIterator
-
-
Method Details
-
getValues
-
getType
-
hasNext
public boolean hasNext() -
next
-
toString
-
lazySelectMatchingTypes
- Type Parameters:
T
- Type if iterated element- Parameters:
values
- The source values - ignored ifnull
type
- The (never @code null) type of values to select - any value whose type is assignable to this type will be selected by the iterator.- Returns:
- An
Iterator
whosenext()
call selects only values matching the specific type. Note: the matching values are not pre-calculated (hence the "lazy" denomination) - i.e., the match is performed only whenIterator.hasNext()
is called.
-