public class ValidatedElements extends TransformIterable<Element,Element>
ValidatedElements
extends TransformIterable
and uses an
ElementValidator
to validate the Element
s.
It does not transform the element items - just simply returns them if they are valid.
So the resultant Iterable
will only contain Element
s that have passed
the Schema
Predicate
s or
View
Predicate
s.
Constructor and Description |
---|
ValidatedElements(Iterable<? extends Element> elements,
Schema schema,
boolean skipInvalid)
|
ValidatedElements(Iterable<? extends Element> elements,
View view,
boolean skipInvalid)
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
iterator
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ValidatedElements(Iterable<? extends Element> elements, Schema schema, boolean skipInvalid)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIterable<Element>
close
in class TransformIterable<Element,Element>
Copyright © 2022. All rights reserved.