org.graylog.plugins.map.geoip.AutoValue_IPinfoStandardLocation Maven / Gradle / Ivy
package org.graylog.plugins.map.geoip;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_IPinfoStandardLocation extends $AutoValue_IPinfoStandardLocation {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile String coordinates;
AutoValue_IPinfoStandardLocation(String city, String country, String timezone, String region,
Long geoNameId, double latitude, double longitude) {
super(city, country, timezone, region, geoNameId, latitude, longitude);
}
@Override
@JsonProperty("coordinates")
public String coordinates() {
if (coordinates == null) {
synchronized (this) {
if (coordinates == null) {
coordinates = super.coordinates();
if (coordinates == null) {
throw new NullPointerException("coordinates() cannot return null");
}
}
}
}
return coordinates;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy