diff --git a/pom.xml b/pom.xml index f2f7c57..2fb9f75 100644 --- a/pom.xml +++ b/pom.xml @@ -66,12 +66,6 @@ junit-jupiter-params test - - org.projectlombok - lombok - 1.18.34 - provided - diff --git a/src/main/java/com/uid2/client/Site.java b/src/main/java/com/uid2/client/Site.java index 9386070..dd0de28 100644 --- a/src/main/java/com/uid2/client/Site.java +++ b/src/main/java/com/uid2/client/Site.java @@ -1,17 +1,19 @@ package com.uid2.client; -import lombok.AllArgsConstructor; -import lombok.Getter; - import java.util.Set; -@Getter -@AllArgsConstructor public class Site { private final int id; private final Set domainOrAppNames; + public int getId() { return id;} + + public Site(int id, Set domainOrAppNames) { + this.id = id; + this.domainOrAppNames = domainOrAppNames; + } + public boolean allowDomainOrAppName(String domainOrAppName) { // Using streams because HashSet's contains() is case sensitive return domainOrAppNames.stream().anyMatch(domainOrAppName::equalsIgnoreCase);