public final class Moshi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Moshi.Builder |
| Modifier and Type | Method and Description |
|---|---|
<T> JsonAdapter<T> |
adapter(Class<T> type) |
<T> JsonAdapter<T> |
adapter(Type type)
Returns a JSON adapter for
type, creating it if necessary. |
<T> JsonAdapter<T> |
adapter(Type type,
Class<? extends Annotation> annotationType) |
<T> JsonAdapter<T> |
adapter(Type type,
Set<? extends Annotation> annotations) |
Moshi.Builder |
newBuilder()
Returns a new builder containing all custom factories used by the current instance.
|
<T> JsonAdapter<T> |
nextAdapter(JsonAdapter.Factory skipPast,
Type type,
Set<? extends Annotation> annotations) |
public <T> JsonAdapter<T> adapter(Type type)
type, creating it if necessary.public <T> JsonAdapter<T> adapter(Class<T> type)
public <T> JsonAdapter<T> adapter(Type type, Class<? extends Annotation> annotationType)
public <T> JsonAdapter<T> adapter(Type type, Set<? extends Annotation> annotations)
public <T> JsonAdapter<T> nextAdapter(JsonAdapter.Factory skipPast, Type type, Set<? extends Annotation> annotations)
public Moshi.Builder newBuilder()
Copyright © 2017. All Rights Reserved.