Package com.iab.gdpr.consent.range
Class StartEndRangeEntry
- java.lang.Object
-
- com.iab.gdpr.consent.range.StartEndRangeEntry
-
- All Implemented Interfaces:
RangeEntry
public class StartEndRangeEntry extends Object implements RangeEntry
RangeEntrywith start and end vendor IDs
-
-
Constructor Summary
Constructors Constructor Description StartEndRangeEntry(int startVendorId, int endVendorId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intappendTo(Bits buffer, int currentOffset)Append this range entry to the bit bufferintsize()booleanvalid(int maxVendorId)Check if range entry is valid for the specified max vendor id
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceRangeEntry- Returns:
- Size of range entry in bits
-
appendTo
public int appendTo(Bits buffer, int currentOffset)
Description copied from interface:RangeEntryAppend this range entry to the bit buffer- Specified by:
appendToin interfaceRangeEntry- Parameters:
buffer- bit buffercurrentOffset- current offset in the buffer- Returns:
- new offset
-
valid
public boolean valid(int maxVendorId)
Description copied from interface:RangeEntryCheck if range entry is valid for the specified max vendor id- Specified by:
validin interfaceRangeEntry- Parameters:
maxVendorId- max vendor id- Returns:
- true if range entry is valid, false otherwise
-
-