Package org.roaringbitmap
Class IntConsumerRelativeRangeAdapter
- java.lang.Object
-
- org.roaringbitmap.IntConsumerRelativeRangeAdapter
-
- All Implemented Interfaces:
RelativeRangeConsumer
public class IntConsumerRelativeRangeAdapter extends java.lang.Object implements RelativeRangeConsumer
Wrapper to use an IntConsumer where a RelativeRangeConsumer is expected.
-
-
Constructor Summary
Constructors Constructor Description IntConsumerRelativeRangeAdapter(int start, IntConsumer lc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptAbsent(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 Detail
-
IntConsumerRelativeRangeAdapter
public IntConsumerRelativeRangeAdapter(int start, IntConsumer lc)
-
-
Method Detail
-
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
-
-