All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twilio.type.Sip Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy