public <T> JsonCodec<T> jsonCodec(Type type) { requireNonNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type); }
public <T> JsonCodec<T> jsonCodec(Class<T> type) { requireNonNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type); }
public <T> JsonCodec<T> jsonCodec(Class<T> type) { requireNonNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type); }
public <T> JsonCodec<T> jsonCodec(Type type) { requireNonNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type); }
public <T> JsonCodec<T> jsonCodec(Type type) { Preconditions.checkNotNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type); }
public <T> JsonCodec<T> jsonCodec(TypeToken<T> type) { requireNonNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type.getType()); }
public <T> JsonCodec<T> jsonCodec(TypeToken<T> type) { requireNonNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type.getType()); }
public <T> JsonCodec<T> jsonCodec(TypeToken<T> type) { Preconditions.checkNotNull(type, "type is null"); return new JsonCodec<>(createObjectMapper(), type.getType()); }
public <T> JsonCodec<List<T>> listJsonCodec(Class<T> type) { requireNonNull(type, "type is null"); Type listType = new TypeToken<List<T>>() {} .where(new TypeParameter<T>() {}, type) .getType(); return new JsonCodec<>(createObjectMapper(), listType); }
public <T> JsonCodec<List<T>> listJsonCodec(Class<T> type) { requireNonNull(type, "type is null"); Type listType = new TypeToken<List<T>>() {} .where(new TypeParameter<T>() {}, type) .getType(); return new JsonCodec<>(createObjectMapper(), listType); }
public <T> JsonCodec<List<T>> listJsonCodec(Class<T> type) { Preconditions.checkNotNull(type, "type is null"); Type listType = new TypeToken<List<T>>() {} .where(new TypeParameter<T>() {}, type) .getType(); return new JsonCodec<>(createObjectMapper(), listType); }
public <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, Class<V> valueType) { Preconditions.checkNotNull(keyType, "keyType is null"); Preconditions.checkNotNull(valueType, "valueType is null"); Type mapType = new TypeToken<Map<K, V>>() {} .where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType) .getType(); return new JsonCodec<>(createObjectMapper(), mapType); }
public <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, Class<V> valueType) { requireNonNull(keyType, "keyType is null"); requireNonNull(valueType, "valueType is null"); Type mapType = new TypeToken<Map<K, V>>() {} .where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType) .getType(); return new JsonCodec<>(createObjectMapper(), mapType); }
public <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, Class<V> valueType) { requireNonNull(keyType, "keyType is null"); requireNonNull(valueType, "valueType is null"); Type mapType = new TypeToken<Map<K, V>>() {} .where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType) .getType(); return new JsonCodec<>(createObjectMapper(), mapType); }
public <T> JsonCodec<List<T>> listJsonCodec(JsonCodec<T> type) { requireNonNull(type, "type is null"); Type listType = new TypeToken<List<T>>() {} .where(new TypeParameter<T>() {}, type.getTypeToken()) .getType(); return new JsonCodec<>(createObjectMapper(), listType); }
public <T> JsonCodec<List<T>> listJsonCodec(JsonCodec<T> type) { requireNonNull(type, "type is null"); Type listType = new TypeToken<List<T>>() {} .where(new TypeParameter<T>() {}, type.getTypeToken()) .getType(); return new JsonCodec<>(createObjectMapper(), listType); }
public <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, JsonCodec<V> valueType) { Preconditions.checkNotNull(keyType, "keyType is null"); Preconditions.checkNotNull(valueType, "valueType is null"); Type mapType = new TypeToken<Map<K, V>>() {} .where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType.getTypeToken()) .getType(); return new JsonCodec<>(createObjectMapper(), mapType); }
public <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, JsonCodec<V> valueType) { requireNonNull(keyType, "keyType is null"); requireNonNull(valueType, "valueType is null"); Type mapType = new TypeToken<Map<K, V>>() {} .where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType.getTypeToken()) .getType(); return new JsonCodec<>(createObjectMapper(), mapType); }
public <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, JsonCodec<V> valueType) { requireNonNull(keyType, "keyType is null"); requireNonNull(valueType, "valueType is null"); Type mapType = new TypeToken<Map<K, V>>() {} .where(new TypeParameter<K>() {}, keyType) .where(new TypeParameter<V>() {}, valueType.getTypeToken()) .getType(); return new JsonCodec<>(createObjectMapper(), mapType); }
public <T> JsonCodec<List<T>> listJsonCodec(JsonCodec<T> type) { Preconditions.checkNotNull(type, "type is null"); Type listType = new TypeToken<List<T>>() {} .where(new TypeParameter<T>() {}, type.getTypeToken()) .getType(); return new JsonCodec<>(createObjectMapper(), listType); }