Package org.apache.johnzon.jsonb.spi
Class JohnzonAdapterFactory.ConstantInstance<T>
- java.lang.Object
-
- org.apache.johnzon.jsonb.spi.JohnzonAdapterFactory.ConstantInstance<T>
-
- All Implemented Interfaces:
Serializable
,JohnzonAdapterFactory.Instance<T>
- Enclosing interface:
- JohnzonAdapterFactory
public static class JohnzonAdapterFactory.ConstantInstance<T> extends Object implements JohnzonAdapterFactory.Instance<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstantInstance(T value)
-
-
-
Field Detail
-
value
private final T value
-
-
Constructor Detail
-
ConstantInstance
public ConstantInstance(T value)
-
-
Method Detail
-
getValue
public T getValue()
- Specified by:
getValue
in interfaceJohnzonAdapterFactory.Instance<T>
-
release
public void release()
- Specified by:
release
in interfaceJohnzonAdapterFactory.Instance<T>
-
-