Package io.micronaut.gcp.pubsub.bind
Class PubSubAttributesConvertibleValues
java.lang.Object
io.micronaut.gcp.pubsub.bind.PubSubAttributesConvertibleValues
- All Implemented Interfaces:
io.micronaut.core.convert.ConversionServiceProvider
,io.micronaut.core.convert.value.ConvertibleValues<String>
,io.micronaut.core.value.ValueResolver<CharSequence>
,Iterable<Map.Entry<String,
String>>
public class PubSubAttributesConvertibleValues
extends Object
implements io.micronaut.core.convert.value.ConvertibleValues<String>
Convert PubSub attributes to the requested type.
- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
Constructor Summary
ConstructorDescriptionPubSubAttributesConvertibleValues
(Map<String, String> attributes, io.micronaut.core.convert.ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
get
(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) names()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMap
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get
-
Constructor Details
-
PubSubAttributesConvertibleValues
-
-
Method Details
-
names
- Specified by:
names
in interfaceio.micronaut.core.convert.value.ConvertibleValues<String>
-
values
- Specified by:
values
in interfaceio.micronaut.core.convert.value.ConvertibleValues<String>
-
get
public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) - Specified by:
get
in interfaceio.micronaut.core.value.ValueResolver<CharSequence>
-