4870 |
|
return added; |
4871 |
|
} |
4872 |
|
|
4873 |
< |
Spliterator<K> spliterator() { |
4873 |
> |
public Spliterator<K> spliterator() { |
4874 |
|
return new KeyIterator<>(map, null); |
4875 |
|
} |
4876 |
|
|
4877 |
– |
public Stream<K> stream() { |
4878 |
– |
return Streams.stream(spliterator()); |
4879 |
– |
} |
4880 |
– |
public Stream<K> parallelStream() { |
4881 |
– |
return Streams.parallelStream(spliterator()); |
4882 |
– |
} |
4877 |
|
} |
4878 |
|
|
4879 |
|
/** |
4923 |
|
throw new UnsupportedOperationException(); |
4924 |
|
} |
4925 |
|
|
4926 |
< |
Spliterator<V> spliterator() { |
4926 |
> |
public Spliterator<V> spliterator() { |
4927 |
|
return new ValueIterator<K,V>(map, null); |
4928 |
|
} |
4929 |
|
|
4936 |
– |
public Stream<V> stream() { |
4937 |
– |
return Streams.stream(spliterator()); |
4938 |
– |
} |
4939 |
– |
|
4940 |
– |
public Stream<V> parallelStream() { |
4941 |
– |
return Streams.parallelStream(spliterator()); |
4942 |
– |
} |
4943 |
– |
|
4930 |
|
} |
4931 |
|
|
4932 |
|
/** |
4991 |
|
return added; |
4992 |
|
} |
4993 |
|
|
4994 |
< |
Spliterator<Map.Entry<K,V>> spliterator() { |
4994 |
> |
public Spliterator<Map.Entry<K,V>> spliterator() { |
4995 |
|
return new EntryIterator<K,V>(map, null); |
4996 |
|
} |
4997 |
|
|
5012 |
– |
public Stream<Map.Entry<K,V>> stream() { |
5013 |
– |
return Streams.stream(spliterator()); |
5014 |
– |
} |
5015 |
– |
|
5016 |
– |
public Stream<Map.Entry<K,V>> parallelStream() { |
5017 |
– |
return Streams.parallelStream(spliterator()); |
5018 |
– |
} |
4998 |
|
} |
4999 |
|
|
5000 |
|
// --------------------------------------------------------------------- |