Class ImmutableGeolocation

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.model.Geolocation

    public final class ImmutableGeolocation
    extends java.lang.Object
    implements org.opennms.integration.api.v1.model.Geolocation
    An immutable implementation of Geolocation that enforces deep immutability.
    • Method Detail

      • newBuilderFrom

        public static ImmutableGeolocation.Builder newBuilderFrom​(org.opennms.integration.api.v1.model.Geolocation geoLocation)
      • immutableCopy

        public static org.opennms.integration.api.v1.model.Geolocation immutableCopy​(org.opennms.integration.api.v1.model.Geolocation geoLocation)
      • getAddress1

        public java.lang.String getAddress1()
        Specified by:
        getAddress1 in interface org.opennms.integration.api.v1.model.Geolocation
      • getAddress2

        public java.lang.String getAddress2()
        Specified by:
        getAddress2 in interface org.opennms.integration.api.v1.model.Geolocation
      • getCity

        public java.lang.String getCity()
        Specified by:
        getCity in interface org.opennms.integration.api.v1.model.Geolocation
      • getState

        public java.lang.String getState()
        Specified by:
        getState in interface org.opennms.integration.api.v1.model.Geolocation
      • getZip

        public java.lang.String getZip()
        Specified by:
        getZip in interface org.opennms.integration.api.v1.model.Geolocation
      • getCountry

        public java.lang.String getCountry()
        Specified by:
        getCountry in interface org.opennms.integration.api.v1.model.Geolocation
      • getLongitude

        public java.lang.Double getLongitude()
        Specified by:
        getLongitude in interface org.opennms.integration.api.v1.model.Geolocation
      • getLatitude

        public java.lang.Double getLatitude()
        Specified by:
        getLatitude in interface org.opennms.integration.api.v1.model.Geolocation
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object