Java Code Examples for java.util.Spliterator#NONNULL
The following examples show how to use
java.util.Spliterator#NONNULL .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Loader.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public Stream<URL> resources(String name) { Objects.requireNonNull(name); // ordering not specified int characteristics = (Spliterator.NONNULL | Spliterator.IMMUTABLE | Spliterator.SIZED | Spliterator.SUBSIZED); Supplier<Spliterator<URL>> supplier = () -> { try { List<URL> urls = findResourcesAsList(name); return Spliterators.spliterator(urls, characteristics); } catch (IOException e) { throw new UncheckedIOException(e); } }; Stream<URL> s1 = StreamSupport.stream(supplier, characteristics, false); Stream<URL> s2 = parent.resources(name); return Stream.concat(s1, s2); }
Example 2
Source File: PriorityBlockingQueue.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
public int characteristics() { return Spliterator.NONNULL | Spliterator.SIZED | Spliterator.SUBSIZED; }
Example 3
Source File: Streams.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public int characteristics() { return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.DISTINCT | Spliterator.SORTED; }
Example 4
Source File: ConcurrentSkipListMap.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
public int characteristics() { return Spliterator.DISTINCT | Spliterator.SORTED | Spliterator.ORDERED | Spliterator.CONCURRENT | Spliterator.NONNULL; }
Example 5
Source File: ThreadLocalRandom.java From JDKSourceCode1.8 with MIT License | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 6
Source File: Streams.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override public int characteristics() { return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.DISTINCT | Spliterator.SORTED; }
Example 7
Source File: LinkedTransferQueue.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
public int characteristics() { return Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.CONCURRENT; }
Example 8
Source File: ThreadLocalRandom.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 9
Source File: LinkedBlockingDeque.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.CONCURRENT; }
Example 10
Source File: ThreadLocalRandom.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 11
Source File: ConcurrentLinkedDeque.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.CONCURRENT; }
Example 12
Source File: ConcurrentSkipListMap.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return Spliterator.CONCURRENT | Spliterator.ORDERED | Spliterator.NONNULL; }
Example 13
Source File: ThreadLocalRandom.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 14
Source File: ThreadLocalRandom.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 15
Source File: LinkedBlockingDeque.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return (Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.CONCURRENT); }
Example 16
Source File: ThreadLocalRandom.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 17
Source File: ConcurrentHashMap.java From desugar_jdk_libs with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return Spliterator.CONCURRENT | Spliterator.NONNULL; }
Example 18
Source File: ThreadLocalRandom.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return (Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.NONNULL | Spliterator.IMMUTABLE); }
Example 19
Source File: LinkedBlockingQueue.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public int characteristics() { return Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.CONCURRENT; }
Example 20
Source File: ConcurrentSkipListMap.java From JDKSourceCode1.8 with MIT License | 4 votes |
public int characteristics() { return Spliterator.DISTINCT | Spliterator.SORTED | Spliterator.ORDERED | Spliterator.CONCURRENT | Spliterator.NONNULL; }