![JAR search and dependency download from the Maven repository](/logo.png)
com.oneops.infoblox.model.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infoblox-java Show documentation
Show all versions of infoblox-java Show documentation
A pure java API for Infoblox DNS appliance.
package com.oneops.infoblox.model;
import com.google.auto.value.AutoValue;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.Moshi;
import java.lang.reflect.Type;
/**
* Holds a result type containing one or more JSON objects.
*
* @author Suresh G
*/
@AutoValue
public abstract class Result {
public abstract T result();
public static Result create(T result) {
return new AutoValue_Result<>(result);
}
/**
* Json adapter for {@link Result} type, used by Moshi for JSON [de]serialization.
*/
public static JsonAdapter> jsonAdapter(Moshi moshi, Type[] types) {
return new AutoValue_Result.MoshiJsonAdapter<>(moshi, types);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy