public class DecoderFactory extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static ConcurrentHashMap<Class<? extends TypeDecoder>,TypeDecoder<?>> |
decoders |
protected static ConcurrentHashMap<Class<? extends java.util.function.Function>,java.util.function.Function> |
formulas |
| 构造器和说明 |
|---|
DecoderFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.util.function.Function<DecodeContext,?> |
getDecoder(Class<? extends TypeDecoder> clazz) |
static java.util.function.Function<DecodeContext,?> |
getDecoder(Class<? extends TypeDecoder> decoderClass,
Class<? extends java.util.function.Function> formulaClass) |
static <T,R> java.util.function.Function<T,R> |
getFormula(Class<? extends java.util.function.Function> clazz) |
protected static ConcurrentHashMap<Class<? extends TypeDecoder>,TypeDecoder<?>> decoders
protected static ConcurrentHashMap<Class<? extends java.util.function.Function>,java.util.function.Function> formulas
public static java.util.function.Function<DecodeContext,?> getDecoder(Class<? extends TypeDecoder> clazz)
public static <T,R> java.util.function.Function<T,R> getFormula(Class<? extends java.util.function.Function> clazz)
public static java.util.function.Function<DecodeContext,?> getDecoder(Class<? extends TypeDecoder> decoderClass, Class<? extends java.util.function.Function> formulaClass)
Copyright © 2019–2021 indunet. All rights reserved.