public class ConstructorStream
extends java.lang.Object
| Constructor and Description |
|---|
ConstructorStream(RStream parent) |
| Modifier and Type | Method and Description |
|---|---|
ConstructorWrapper |
by(java.lang.Class<?>... parameterTypes)
Get a constructor by the given parameter types.
|
ConstructorWrapper |
by(int index)
Get a constructor by the given index.
|
ConstructorStream |
filter(boolean isStatic)
Filter the constructors by whether they are static.
|
ConstructorStream |
filter(java.lang.Class<?>... parameterTypes)
Filter the methods by the given parameter types.
|
ConstructorStream |
filter(java.util.function.Predicate<ConstructorWrapper> filter)
Filter the methods with the given filter.
|
ConstructorStream |
forEach(java.util.function.Consumer<ConstructorWrapper> consumer)
Loop through all constructors in this stream.
|
java.util.Iterator<ConstructorWrapper> |
iterator() |
java.util.stream.Stream<ConstructorWrapper> |
jstream() |
RStream |
parent() |
int |
size() |
public ConstructorStream(RStream parent)
public RStream parent()
public int size()
public ConstructorWrapper by(java.lang.Class<?>... parameterTypes)
parameterTypes - The parameter types of the constructorjava.lang.NoSuchMethodException - If the constructor doesn't existpublic ConstructorWrapper by(int index)
index - The index of the constructorjava.lang.NoSuchMethodException - If the constructor doesn't existpublic ConstructorStream filter(java.util.function.Predicate<ConstructorWrapper> filter)
filter - The filterpublic ConstructorStream filter(java.lang.Class<?>... parameterTypes)
parameterTypes - The parameter types of the constructorpublic ConstructorStream filter(boolean isStatic)
isStatic - Whether the constructor should be staticpublic java.util.Iterator<ConstructorWrapper> iterator()
public java.util.stream.Stream<ConstructorWrapper> jstream()
public ConstructorStream forEach(java.util.function.Consumer<ConstructorWrapper> consumer)
consumer - The consumer