V
- public class GenericValueEncoderFactory<V> extends Object implements ValueEncoderFactory<V>
ValueEncoderFactory
that returns a pre-wired instance of ValueEncoder
. This is
odd for a factory, because it doesn't actually create the returned instance, just stores it until the encoder is
needed.Constructor and Description |
---|
GenericValueEncoderFactory(ValueEncoder<V> encoder) |
Modifier and Type | Method and Description |
---|---|
ValueEncoder<V> |
create(Class<V> type)
For a given type, create an encoder.
|
static <V> GenericValueEncoderFactory<V> |
create(ValueEncoder<V> encoder) |
public GenericValueEncoderFactory(ValueEncoder<V> encoder)
public ValueEncoder<V> create(Class<V> type)
ValueEncoderFactory
create
in interface ValueEncoderFactory<V>
type
- type of object for which an encoder is neededpublic static <V> GenericValueEncoderFactory<V> create(ValueEncoder<V> encoder)
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.