Module io.helidon.common.mapper
Package io.helidon.common.mapper.spi
Record Class MapperProvider.ProviderResponse
java.lang.Object
java.lang.Record
io.helidon.common.mapper.spi.MapperProvider.ProviderResponse
- Record Components:
support
- how is this supportedmapper
- mapper to map the type, or null if support isMapperProvider.Support.UNSUPPORTED
- Enclosing interface:
MapperProvider
public static record MapperProvider.ProviderResponse(MapperProvider.Support support, Mapper<?,?> mapper)
extends Record
Response of a provider.
-
Constructor Summary
ConstructorDescriptionProviderResponse
(MapperProvider.Support support, Mapper<?, ?> mapper) Creates an instance of aProviderResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Mapper
<?, ?> mapper()
Returns the value of themapper
record component.support()
Returns the value of thesupport
record component.final String
toString()
Returns a string representation of this record class.Unsupported provider response.
-
Constructor Details
-
Method Details
-
unsupported
Unsupported provider response.- Returns:
- constant - unsupported response
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
support
Returns the value of thesupport
record component.- Returns:
- the value of the
support
record component
-
mapper
Returns the value of themapper
record component.- Returns:
- the value of the
mapper
record component
-