package com.qianwen.core.secure.props;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
public class ClientSecure {
|
private String clientId;
|
private final List<String> pathPatterns = new ArrayList<>();
|
|
public void setClientId(final String clientId) {
|
this.clientId = clientId;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ClientSecure) {
|
ClientSecure other = (ClientSecure) o;
|
if (other.canEqual(this)) {
|
Object this$clientId = getClientId();
|
Object other$clientId = other.getClientId();
|
if (this$clientId == null) {
|
if (other$clientId != null) {
|
return false;
|
}
|
} else if (!this$clientId.equals(other$clientId)) {
|
return false;
|
}
|
Object this$pathPatterns = getPathPatterns();
|
Object other$pathPatterns = other.getPathPatterns();
|
return this$pathPatterns == null ? other$pathPatterns == null : this$pathPatterns.equals(other$pathPatterns);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ClientSecure;
|
}
|
|
public int hashCode() {
|
Object $clientId = getClientId();
|
int result = (1 * 59) + ($clientId == null ? 43 : $clientId.hashCode());
|
Object $pathPatterns = getPathPatterns();
|
return (result * 59) + ($pathPatterns == null ? 43 : $pathPatterns.hashCode());
|
}
|
|
public String toString() {
|
return "ClientSecure(clientId=" + getClientId() + ", pathPatterns=" + getPathPatterns() + ")";
|
}
|
|
public String getClientId() {
|
return this.clientId;
|
}
|
|
public List<String> getPathPatterns() {
|
return this.pathPatterns;
|
}
|
}
|