mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
:trollface: 解决冲突
This commit is contained in:
@@ -116,7 +116,7 @@ public class EntryStream<K, V> extends AbstractEnhancedWrappedStream<Map.Entry<K
|
|||||||
return empty();
|
return empty();
|
||||||
}
|
}
|
||||||
final Stream<Map.Entry<K, V>> stream = StreamSupport.stream(source.spliterator(), false)
|
final Stream<Map.Entry<K, V>> stream = StreamSupport.stream(source.spliterator(), false)
|
||||||
.map(t -> new Entry<>(keyMapper.apply(t), valueMapper.apply(t)));
|
.map(t -> ofEntry(keyMapper.apply(t), valueMapper.apply(t)));
|
||||||
return new EntryStream<>(stream);
|
return new EntryStream<>(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ public class EntryStream<K, V> extends AbstractEnhancedWrappedStream<Map.Entry<K
|
|||||||
*/
|
*/
|
||||||
public static <K, V> EntryStream<K, V> of(Stream<? extends Map.Entry<K, V>> stream) {
|
public static <K, V> EntryStream<K, V> of(Stream<? extends Map.Entry<K, V>> stream) {
|
||||||
return ObjUtil.isNull(stream) ?
|
return ObjUtil.isNull(stream) ?
|
||||||
empty() : new EntryStream<>(stream.map(Entry::new));
|
empty() : new EntryStream<>(stream.map(EntryStream::ofEntry));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user