Interface EasyStream.Builder<T>
- Type Parameters:
T- 对象类型
- All Superinterfaces:
Builder<EasyStream<T>>,Consumer<T>,Serializable
- Enclosing class:
EasyStream<T>
建造者
-
Method Summary
Modifier and TypeMethodDescriptiondefault EasyStream.Builder<T> Adds an element to the unwrap being built.
-
Method Details
-
add
Adds an element to the unwrap being built.- Parameters:
t- the element to add- Returns:
thisbuilder- Throws:
IllegalStateException- if the builder has already transitioned to the built state
-