com.yoti.api.client.identity.constraint.PreferredSources Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoti-sdk-api Show documentation
Show all versions of yoti-sdk-api Show documentation
Java SDK for simple integration with the Yoti platform
The newest version!
package com.yoti.api.client.identity.constraint;
import java.util.List;
import java.util.Objects;
import com.yoti.api.client.identity.policy.WantedAnchor;
import com.fasterxml.jackson.annotation.JsonProperty;
public class PreferredSources {
@JsonProperty(Property.ANCHORS)
private final List wantedAnchors;
@JsonProperty(Property.SOFT_PREFERENCE)
private final boolean softPreference;
PreferredSources(List wantedAnchors, boolean softPreference) {
this.wantedAnchors = wantedAnchors;
this.softPreference = softPreference;
}
public List getWantedAnchors() {
return wantedAnchors;
}
public boolean isSoftPreference() {
return softPreference;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PreferredSources that = (PreferredSources) o;
return softPreference == that.softPreference && Objects.equals(wantedAnchors, that.wantedAnchors);
}
@Override
public int hashCode() {
return Objects.hash(softPreference, wantedAnchors);
}
private static final class Property {
private static final String ANCHORS = "anchors";
private static final String SOFT_PREFERENCE = "soft_preference";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy