Class ImmutableGeolocation
- java.lang.Object
-
- org.opennms.integration.api.v1.model.immutables.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.GeolocationAn immutable implementation ofGeolocationthat enforces deep immutability.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGeolocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAddress1()java.lang.StringgetAddress2()java.lang.StringgetCity()java.lang.StringgetCountry()java.lang.DoublegetLatitude()java.lang.DoublegetLongitude()java.lang.StringgetState()java.lang.StringgetZip()inthashCode()static org.opennms.integration.api.v1.model.GeolocationimmutableCopy(org.opennms.integration.api.v1.model.Geolocation geoLocation)static ImmutableGeolocation.BuildernewBuilder()static ImmutableGeolocation.BuildernewBuilderFrom(org.opennms.integration.api.v1.model.Geolocation geoLocation)java.lang.StringtoString()
-
-
-
Method Detail
-
newBuilder
public static ImmutableGeolocation.Builder newBuilder()
-
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:
getAddress1in interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getAddress2
public java.lang.String getAddress2()
- Specified by:
getAddress2in interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getCity
public java.lang.String getCity()
- Specified by:
getCityin interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getState
public java.lang.String getState()
- Specified by:
getStatein interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getZip
public java.lang.String getZip()
- Specified by:
getZipin interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getCountry
public java.lang.String getCountry()
- Specified by:
getCountryin interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getLongitude
public java.lang.Double getLongitude()
- Specified by:
getLongitudein interfaceorg.opennms.integration.api.v1.model.Geolocation
-
getLatitude
public java.lang.Double getLatitude()
- Specified by:
getLatitudein interfaceorg.opennms.integration.api.v1.model.Geolocation
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-