
com.launchdarkly.client.value.LDValueNull Maven / Gradle / Ivy
package com.launchdarkly.client.value;
import com.google.gson.JsonElement;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
@JsonAdapter(LDValueTypeAdapter.class)
final class LDValueNull extends LDValue {
static final LDValueNull INSTANCE = new LDValueNull();
public LDValueType getType() {
return LDValueType.NULL;
}
public boolean isNull() {
return true;
}
@Override
public String toJsonString() {
return "null";
}
@Override
void write(JsonWriter writer) throws IOException {
writer.nullValue();
}
@Override
JsonElement computeJsonElement() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy