Java Code Examples for java.util.Spliterator#DISTINCT

The following examples show how to use java.util.Spliterator#DISTINCT . 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: Streams.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public int characteristics() {
    if (beforeSplit) {
        // Concatenation loses DISTINCT and SORTED characteristics
        return aSpliterator.characteristics() & bSpliterator.characteristics()
               & ~(Spliterator.DISTINCT | Spliterator.SORTED
                   | (unsized ? Spliterator.SIZED | Spliterator.SUBSIZED : 0));
    }
    else {
        return bSpliterator.characteristics();
    }
}
 
Example 2
Source File: ConcurrentSkipListMap.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.SORTED |
        Spliterator.ORDERED | Spliterator.CONCURRENT |
        Spliterator.NONNULL;
}
 
Example 3
Source File: ConcurrentSkipListMap.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.ORDERED |
        Spliterator.SORTED;
}
 
Example 4
Source File: ConcurrentSkipListMap.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.ORDERED |
        Spliterator.SORTED;
}
 
Example 5
Source File: ConcurrentSkipListMap.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.SORTED |
        Spliterator.ORDERED | Spliterator.CONCURRENT |
        Spliterator.NONNULL;
}
 
Example 6
Source File: ConcurrentSkipListMap.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.ORDERED |
        Spliterator.SORTED;
}
 
Example 7
Source File: Streams.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public int characteristics() {
    return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED |
           Spliterator.IMMUTABLE | Spliterator.NONNULL |
           Spliterator.DISTINCT | Spliterator.SORTED;
}
 
Example 8
Source File: Streams.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public int characteristics() {
    return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED |
           Spliterator.IMMUTABLE | Spliterator.NONNULL |
           Spliterator.DISTINCT | Spliterator.SORTED;
}
 
Example 9
Source File: ConcurrentSkipListMap.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.SORTED |
        Spliterator.ORDERED | Spliterator.CONCURRENT |
        Spliterator.NONNULL;
}
 
Example 10
Source File: ConcurrentSkipListMap.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT;
}
 
Example 11
Source File: EdgeSpliterator.java    From constellation with Apache License 2.0 4 votes vote down vote up
@Override
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.SIZED;
}
 
Example 12
Source File: HashMap.java    From aion with MIT License 4 votes vote down vote up
public int characteristics() {
    return (fence < 0 || est == map.size ? Spliterator.SIZED : 0) | Spliterator.DISTINCT;
}
 
Example 13
Source File: StreamSpliterators.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
@Override
public int characteristics() {
    return (s.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED |
                                    Spliterator.SORTED | Spliterator.ORDERED))
           | Spliterator.DISTINCT;
}
 
Example 14
Source File: ConcurrentSkipListMap.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.SORTED |
        Spliterator.ORDERED | Spliterator.CONCURRENT |
        Spliterator.NONNULL;
}
 
Example 15
Source File: ConcurrentSkipListMap.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.SORTED |
        Spliterator.ORDERED | Spliterator.CONCURRENT |
        Spliterator.NONNULL;
}
 
Example 16
Source File: ConcurrentHashMap.java    From desugar_jdk_libs with GNU General Public License v2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.CONCURRENT |
        Spliterator.NONNULL;
}
 
Example 17
Source File: Streams.java    From desugar_jdk_libs with GNU General Public License v2.0 4 votes vote down vote up
@Override
public int characteristics() {
    return Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SUBSIZED |
           Spliterator.IMMUTABLE | Spliterator.NONNULL |
           Spliterator.DISTINCT | Spliterator.SORTED;
}
 
Example 18
Source File: LinkSpliterator.java    From constellation with Apache License 2.0 4 votes vote down vote up
@Override
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.SIZED;
}
 
Example 19
Source File: ConcurrentSkipListMap.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
public int characteristics() {
    return Spliterator.DISTINCT;
}
 
Example 20
Source File: VertexSpliterator.java    From constellation with Apache License 2.0 4 votes vote down vote up
@Override
public int characteristics() {
    return Spliterator.DISTINCT | Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.SIZED;
}