org.graylog.plugins.map.geoip.AutoValue_IPinfoASN 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.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.extension.memoized.processor.MemoizeExtension")
final class AutoValue_IPinfoASN extends $AutoValue_IPinfoASN {
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile Long asnNumeric;
@LazyInit
@SuppressWarnings("Immutable")
private transient volatile boolean asnNumeric$Memoized;
AutoValue_IPinfoASN(String name$, String route$, String type$, String asn$, String domain$) {
super(name$, route$, type$, asn$, domain$);
}
@Override
@JsonProperty("asn_numeric")
@Nullable
public Long asnNumeric() {
if (!asnNumeric$Memoized) {
synchronized (this) {
if (!asnNumeric$Memoized) {
asnNumeric = super.asnNumeric();
asnNumeric$Memoized = true;
}
}
}
return asnNumeric;
}
}