Package com.iab.gdpr.consent.range
Interface RangeEntry
-
- All Known Implementing Classes:
SingleRangeEntry,StartEndRangeEntry
public interface RangeEntryRange entry of the vendor consent range section. Range entry is a single or range of VendorIds whose consent value is the opposite of DefaultConsent.
-
-
Method Summary
All Methods Instance Methods Abstract 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
int size()
- Returns:
- Size of range entry in bits
-
appendTo
int appendTo(Bits buffer, int currentOffset)
Append this range entry to the bit buffer- Parameters:
buffer- bit buffercurrentOffset- current offset in the buffer- Returns:
- new offset
-
valid
boolean valid(int maxVendorId)
Check if range entry is valid for the specified max vendor id- Parameters:
maxVendorId- max vendor id- Returns:
- true if range entry is valid, false otherwise
-
-