Home | History | Annotate | Download | only in util

Lines Matching defs:characteristics

49  * <p>A Spliterator also reports a set of {@link #characteristics()} of its
57 * report {@code SORTED}. Characteristics are reported as a simple unioned bit
60 * Some characteristics additionally constrain method behavior; for example if
62 * New characteristics may be defined in the future, so implementors should not
238 * public int characteristics() {
408 return (characteristics() & SIZED) == 0 ? -1L : estimateSize();
412 * Returns a set of characteristics of this Spliterator and its
416 * {@link #SUBSIZED}. Repeated calls to {@code characteristics()} on
421 * characteristics (either those returned from a single invocation
425 * @apiNote The characteristics of a given spliterator before splitting
426 * may differ from the characteristics after splitting. For specific
430 * @return a representation of characteristics
432 int characteristics();
436 * #characteristics} contain all of the given characteristics.
440 * of the given characteristics are set.
442 * @param characteristics the characteristics to check for
443 * @return {@code true} if all the specified characteristics are present,
446 default boolean hasCharacteristics(int characteristics) {
447 return (characteristics() & characteristics) == characteristics;