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
ConstructorsConstructorDescriptionProviderResponse(MapperProvider.Support support, Mapper<?, ?> mapper) Creates an instance of aProviderResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Mapper<?, ?> mapper()Returns the value of themapperrecord component.support()Returns the value of thesupportrecord component.final StringtoString()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 thesupportrecord component.- Returns:
- the value of the
supportrecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-