Package com.iab.gdpr.consent.range
Class SingleRangeEntry
- java.lang.Object
-
- com.iab.gdpr.consent.range.SingleRangeEntry
-
- All Implemented Interfaces:
RangeEntry
public class SingleRangeEntry extends Object implements RangeEntry
RangeEntrywith single vendor ID
-
-
Constructor Summary
Constructors Constructor Description SingleRangeEntry(int singeVendorId)
-
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
-
-