Package org.roaringbitmap
Class IntConsumerRelativeRangeAdapter
java.lang.Object
org.roaringbitmap.IntConsumerRelativeRangeAdapter
- All Implemented Interfaces:
RelativeRangeConsumer
Wrapper to use an IntConsumer where a RelativeRangeConsumer is expected.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptAbsent
(int relativePos) Consume a single absent value at relativePos.void
acceptAllAbsent
(int relativeFrom, int relativeTo) Consume consecutive absent values in the range [relativeFrom, relativeTo).void
acceptAllPresent
(int relativeFrom, int relativeTo) Consume consecutive present values in the range [relativeFrom, relativeTo).void
acceptPresent
(int relativePos) Consume a single present value at relativePos.
-
Constructor Details
-
IntConsumerRelativeRangeAdapter
-
-
Method Details
-
acceptPresent
public void acceptPresent(int relativePos) Description copied from interface:RelativeRangeConsumer
Consume a single present value at relativePos.- Specified by:
acceptPresent
in interfaceRelativeRangeConsumer
-
acceptAbsent
public void acceptAbsent(int relativePos) Description copied from interface:RelativeRangeConsumer
Consume a single absent value at relativePos.- Specified by:
acceptAbsent
in interfaceRelativeRangeConsumer
-
acceptAllPresent
public void acceptAllPresent(int relativeFrom, int relativeTo) Description copied from interface:RelativeRangeConsumer
Consume consecutive present values in the range [relativeFrom, relativeTo).- Specified by:
acceptAllPresent
in interfaceRelativeRangeConsumer
-
acceptAllAbsent
public void acceptAllAbsent(int relativeFrom, int relativeTo) Description copied from interface:RelativeRangeConsumer
Consume consecutive absent values in the range [relativeFrom, relativeTo).- Specified by:
acceptAllAbsent
in interfaceRelativeRangeConsumer
-