public class Utils extends Object
| Constructor | Description |
|---|---|
Utils() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> CompletableFuture<T> |
completeExceptionally(Throwable t) |
|
static <T> T |
parseAs(com.fasterxml.jackson.databind.ObjectMapper mapper,
Reader content,
com.fasterxml.jackson.databind.JavaType type) |
|
static <T> T |
parseAs(com.fasterxml.jackson.databind.ObjectMapper mapper,
Reader content,
Class<T> klass) |
public static <T> T parseAs(com.fasterxml.jackson.databind.ObjectMapper mapper,
Reader content,
Class<T> klass)
throws IOException
IOExceptionpublic static <T> T parseAs(com.fasterxml.jackson.databind.ObjectMapper mapper,
Reader content,
com.fasterxml.jackson.databind.JavaType type)
throws IOException
IOExceptionpublic static <T> CompletableFuture<T> completeExceptionally(Throwable t)
Copyright © 2017. All rights reserved.