T - 流中的元素类型S - AbstractEnhancedWrappedStream的实现类类型public abstract class AbstractEnhancedWrappedStream<T,S extends AbstractEnhancedWrappedStream<T,S>> extends Object implements TerminableWrappedStream<T,S>, TransformableWrappedStream<T,S>
WrappedStream接口的公共实现,用于包装并增强一个已有的流实例EasyStream,
EntryStreamStream.Builder<T>| Modifier and Type | Field and Description |
|---|---|
protected Stream<T> |
stream
原始流实例
|
NOT_FOUND_ELEMENT_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEnhancedWrappedStream(Stream<T> stream)
创建一个流包装器
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
比较被包装的实例是否相等
|
void |
exec()
触发流的执行,这是一个终端操作
|
int |
hashCode()
获取当前被包装的实例的哈希值
|
String |
toString()
将被包装的实例转为字符串
|
Stream<T> |
unwrap()
获取被包装的元素流实例
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitat, findFirst, findFirstIdx, findLast, findLast, findLastIdx, forEachIdx, forEachOrderedIdx, group, group, group, isEmpty, isNotEmpty, join, join, join, partition, partition, partition, toColl, toIdxMap, toIdxMap, toList, toMap, toMap, toMap, toMap, toSet, toUnmodifiableList, toUnmodifiableMap, toUnmodifiableMap, toUnmodifiableSet, toZipappend, distinct, dropWhile, filter, filterIdx, flat, flat, flatMap, flatMapIdx, flatNonNull, flatTree, log, map, mapIdx, mapMulti, mapNonNull, nonNull, parallel, peekIdx, prepend, push, reverse, splice, split, splitList, takeWhile, toEntries, toEntries, unshift, zipallMatch, anyMatch, close, collect, collect, count, distinct, easyStream, filter, findAny, findFirst, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, isParallel, iterator, limit, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, onClose, parallel, peek, reduce, reduce, reduce, sequential, skip, sorted, sorted, spliterator, toArray, toArray, unordered, wrapprotected AbstractEnhancedWrappedStream(Stream<T> stream)
stream - 包装的流对象NullPointerException - 当unwrap为null时抛出public Stream<T> unwrap()
unwrap in interface WrappedStream<T,S extends AbstractEnhancedWrappedStream<T,S>>public int hashCode()
hashCode in interface WrappedStream<T,S extends AbstractEnhancedWrappedStream<T,S>>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface WrappedStream<T,S extends AbstractEnhancedWrappedStream<T,S>>equals in class Objectobj - 对象public String toString()
toString in interface WrappedStream<T,S extends AbstractEnhancedWrappedStream<T,S>>toString in class Objectpublic void exec()
Copyright © 2025. All rights reserved.