class OfLong extends ConstSpliterator<Long, OfLong> implements Spliterator.OfLong {
        private final long value;

        OfLong(long value, long count, boolean ordered) {
            super(count, ordered);
            this.value = value;
        }

        @Override
        public boolean tryAdvance(LongConsumer action) {
            if (remaining <= 0)
                return false;
            action.accept(value);
            remaining--;
            return true;
        }

        @Override
        public void forEachRemaining(LongConsumer action) {<FILL_FUNCTION_BODY>}
    }

            for (long r = remaining; r > 0; r--) {
                action.accept(value);
            }
            remaining = 0;
        
<methods>public non-sealed void <init>() <variables>