Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

containsAll

Queries whether multiple entries are contained in the blocklist.

See also: contains.

This method queries only exact matches. If, for example, "*@example.com" is contained in the blocklist and you query [email protected] using this method, false is returned. If you query @example.com, true is returned. To a query both exact matches as well as wildcards, use the areBlacklisted method.

Type: boolean[ ]

Parameters

NameTypeValue
sessionIdStringID of the session
entriesString[ ]Entries to be queried

Return values

For each entry:

  • true: Entry is contained in the blocklist
  • false: Entry is not contained in the blocklist

Code structure

boolean[] containsAll(String sessionId, String[] entries)