SingletonPrimitiveSpliteratorOfLong implements Spliterator.OfLong { @Override public int characteristics() { return Spliterator.NONNULL | Spliterator.SIZED | Spliterator.SUBSIZED | Spliterator.IMMUTABLE | Spliterator.DISTINCT | Spliterator.ORDERED; } SingletonPrimitiveSpliteratorOfLong(long element); @Override OfLong trySplit(); @Override boolean tryAdvance(LongConsumer consumer); @Override void forEachRemaining(LongConsumer consumer); @Override long estimateSize(); @Override int characteristics();  }
@Test void characteristics() { assertNotEquals(0, instance.characteristics() & Spliterator.NONNULL); assertNotEquals(0, instance.characteristics() & Spliterator.SIZED); assertNotEquals(0, instance.characteristics() & Spliterator.SUBSIZED); assertNotEquals(0, instance.characteristics() & Spliterator.IMMUTABLE); assertNotEquals(0, instance.characteristics() & Spliterator.DISTINCT); assertNotEquals(0, instance.characteristics() & Spliterator.ORDERED); }