Uses of Interface
io.bytestreams.codec.core.FieldSpec
Packages that use FieldSpec
-
Uses of FieldSpec in io.bytestreams.codec.core
Methods in io.bytestreams.codec.core that return FieldSpecModifier and TypeMethodDescriptionstatic <T extends DataObject,V>
FieldSpec<T, V> Creates a FieldSpec backed by the object's internal map.static <T extends DataObject,V>
FieldSpec<T, V> Creates a FieldSpec backed by the object's internal map with a presence predicate.static <T,V> FieldSpec <T, V> FieldSpec.of(String name, Codec<V> codec, Function<T, V> getter, BiConsumer<T, V> setter) Creates a FieldSpec from explicit getter and setter functions.static <T,V> FieldSpec <T, V> FieldSpec.of(String name, Codec<V> codec, Function<T, V> getter, BiConsumer<T, V> setter, Predicate<T> presence) Creates a FieldSpec from explicit getter, setter, and presence predicate.Methods in io.bytestreams.codec.core with parameters of type FieldSpecModifier and TypeMethodDescriptionAdds a field to the codec using a FieldSpec.protected <V> VDataObject.get(FieldSpec<? extends DataObject, V> spec) Gets a field value using a FieldSpec.<V> VSimpleData.get(FieldSpec<? extends DataObject, V> spec) protected <V> voidDataObject.set(FieldSpec<? extends DataObject, V> spec, V value) Sets a field value using a FieldSpec.<V> voidSimpleData.set(FieldSpec<? extends DataObject, V> spec, V value)