public boolean hasNext() { if (hasCached) { return true; } nextValue(); return hasCached; }
public Iterator<E> iterator() { return new Filterator<>(delegate.iterator(), containedPredicate); }
public Iterable<Parameter> getSignatureParameters() { return new FilteredIterable<>(getParameters(), new Predicate<Parameter>() { public boolean evaluate(Parameter value) { return value.getSpecification().isSignature(); } }); }
private void nextValue() { while (!hasCached && elements.hasNext()) { T element = elements.next(); if (includePredicate.evaluate(element)) { cached = element; hasCached = true; } } }
public Iterable<Parameter> getDynamicParameters() { return new FilteredIterable<>(getParameters(), new Predicate<Parameter>() { public boolean evaluate(Parameter value) { return !value.getSpecification().isLocal() && !value.getSpecification().isCached(); } }); }
public boolean hasNext() { if (hasCached) { return true; } nextValue(); return hasCached; }
private void nextValue() { while (!hasCached && elements.hasNext()) { T element = elements.next(); if (includePredicate.evaluate(element)) { cached = element; hasCached = true; } } }
public Iterator<E> iterator() { return new Filterator<>(delegate.iterator(), containedPredicate); }
public Iterable<Parameter> getSignatureParameters() { return new FilteredIterable<>(getParameters(), new Predicate<Parameter>() { public boolean evaluate(Parameter value) { return value.getSpecification().isSignature(); } }); }
public Iterable<Parameter> getDynamicParameters() { return new FilteredIterable<>(getParameters(), new Predicate<Parameter>() { public boolean evaluate(Parameter value) { return !value.getSpecification().isLocal() && !value.getSpecification().isAnnotated(); } }); }