com.twilio.type.Sip Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
package com.twilio.type;
import java.util.Objects;
public class Sip implements Endpoint {
private final String sip;
public Sip(String sip) {
this.sip = sip;
}
@Override
public String getEndpoint() {
return sip;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Sip other = (Sip) o;
return Objects.equals(sip, other.sip);
}
@Override
public int hashCode() {
return Objects.hashCode(sip);
}
@Override
public String toString() {
return this.sip;
}
}