public class TransformerUtil<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
TransformerUtil.ListResultDecoder<T> |
private static class |
TransformerUtil.ListResultUnwrapper<T> |
private static class |
TransformerUtil.ResultDecoder<T> |
private static class |
TransformerUtil.ResultUnwrapper<T> |
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.Function<GetResult<T>,T> |
getResultToValue |
private TransformerUtil.ListResultDecoder<T> |
listResultDecoder |
private TransformerUtil.ListResultUnwrapper<T> |
listResultUnwrapper |
private TransformerUtil.ResultDecoder<T> |
resultDecoder |
| Constructor and Description |
|---|
TransformerUtil(Transcoder<T> transcoder) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<GetResult<T>> |
decode(java.util.concurrent.CompletionStage<GetResult<byte[]>> future) |
java.util.concurrent.CompletionStage<java.util.List<GetResult<T>>> |
decodeList(java.util.concurrent.CompletionStage<java.util.List<GetResult<byte[]>>> future) |
java.util.concurrent.CompletionStage<T> |
unwrap(java.util.concurrent.CompletionStage<GetResult<T>> future) |
java.util.concurrent.CompletionStage<java.util.List<T>> |
unwrapList(java.util.concurrent.CompletionStage<java.util.List<GetResult<T>>> future) |
private final TransformerUtil.ListResultUnwrapper<T> listResultUnwrapper
private final TransformerUtil.ResultDecoder<T> resultDecoder
private final TransformerUtil.ListResultDecoder<T> listResultDecoder
public TransformerUtil(Transcoder<T> transcoder)
public java.util.concurrent.CompletionStage<T> unwrap(java.util.concurrent.CompletionStage<GetResult<T>> future)
public java.util.concurrent.CompletionStage<GetResult<T>> decode(java.util.concurrent.CompletionStage<GetResult<byte[]>> future)
public java.util.concurrent.CompletionStage<java.util.List<T>> unwrapList(java.util.concurrent.CompletionStage<java.util.List<GetResult<T>>> future)
Copyright © 2020 Spotify AB. All Rights Reserved.