Package org.roaringbitmap.longlong
Class LongConsumerRelativeRangeAdapter
java.lang.Object
org.roaringbitmap.longlong.LongConsumerRelativeRangeAdapter
- All Implemented Interfaces:
RelativeRangeConsumer
Wrapper to use a LongConsumer where a RelativeRangeConsumer is expected.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptAbsent(int relativePos)Consume a single absent value at relativePos.voidacceptAllAbsent(int relativeFrom, int relativeTo)Consume consecutive absent values in the range [relativeFrom, relativeTo).voidacceptAllPresent(int relativeFrom, int relativeTo)Consume consecutive present values in the range [relativeFrom, relativeTo).voidacceptPresent(int relativePos)Consume a single present value at relativePos.
-
Constructor Details
-
LongConsumerRelativeRangeAdapter
-
-
Method Details
-
acceptPresent
public void acceptPresent(int relativePos)Description copied from interface:RelativeRangeConsumerConsume a single present value at relativePos.- Specified by:
acceptPresentin interfaceRelativeRangeConsumer
-
acceptAbsent
public void acceptAbsent(int relativePos)Description copied from interface:RelativeRangeConsumerConsume a single absent value at relativePos.- Specified by:
acceptAbsentin interfaceRelativeRangeConsumer
-
acceptAllPresent
public void acceptAllPresent(int relativeFrom, int relativeTo)Description copied from interface:RelativeRangeConsumerConsume consecutive present values in the range [relativeFrom, relativeTo).- Specified by:
acceptAllPresentin interfaceRelativeRangeConsumer
-
acceptAllAbsent
public void acceptAllAbsent(int relativeFrom, int relativeTo)Description copied from interface:RelativeRangeConsumerConsume consecutive absent values in the range [relativeFrom, relativeTo).- Specified by:
acceptAllAbsentin interfaceRelativeRangeConsumer
-