Package cz.o2.proxima.core.scheme
Interface AttributeValueAccessors.PrimitiveValueAccessor<T,V>
-
- Type Parameters:
T
- input typeV
- output type
- All Superinterfaces:
AttributeValueAccessor<T,V>
,java.io.Serializable
- All Known Implementing Classes:
AttributeValueAccessors.PrimitiveValueAccessorImpl
- Enclosing class:
- AttributeValueAccessors
public static interface AttributeValueAccessors.PrimitiveValueAccessor<T,V> extends AttributeValueAccessor<T,V>
Accessor for manipulation withSchemaDescriptors.PrimitiveTypeDescriptor
.Allows type conversion between T and V - See Protobuf implementation for details.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.scheme.AttributeValueAccessor
AttributeValueAccessor.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default AttributeValueAccessor.Type
getType()
Get accessor typestatic <T,V>
AttributeValueAccessors.PrimitiveValueAccessor<T,V>of(UnaryFunction<T,V> valueOfCallBack, UnaryFunction<V,T> createFromCallback)
Create accessor with conversion functions.-
Methods inherited from interface cz.o2.proxima.core.scheme.AttributeValueAccessor
createFrom, valueOf
-
-
-
-
Method Detail
-
of
static <T,V> AttributeValueAccessors.PrimitiveValueAccessor<T,V> of(UnaryFunction<T,V> valueOfCallBack, UnaryFunction<V,T> createFromCallback)
Create accessor with conversion functions.- Type Parameters:
T
- input typeV
- output type- Parameters:
valueOfCallBack
- called duringAttributeValueAccessor.valueOf(Object)
createFromCallback
- called duringAttributeValueAccessor.createFrom(Object)
- Returns:
- primitive accessor
-
getType
default AttributeValueAccessor.Type getType()
Description copied from interface:AttributeValueAccessor
Get accessor type- Specified by:
getType
in interfaceAttributeValueAccessor<T,V>
-
-