equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
656 // The underlying spliterator |
656 // The underlying spliterator |
657 final T_SPLITR s; |
657 final T_SPLITR s; |
658 // True if no splitting should be performed, if true then |
658 // True if no splitting should be performed, if true then |
659 // this spliterator may be used for an underlying spliterator whose |
659 // this spliterator may be used for an underlying spliterator whose |
660 // covered elements have an encounter order |
660 // covered elements have an encounter order |
661 // See use in stream take/dropWhile default default methods |
661 // See use in stream take/dropWhile default methods |
662 final boolean noSplitting; |
662 final boolean noSplitting; |
663 // True when operations are cancelled for all related spliterators |
663 // True when operations are cancelled for all related spliterators |
664 // For taking, spliterators cannot split or traversed |
664 // For taking, spliterators cannot split or traversed |
665 // For dropping, spliterators cannot be traversed |
665 // For dropping, spliterators cannot be traversed |
666 final AtomicBoolean cancel; |
666 final AtomicBoolean cancel; |