Module io.helidon.http.media
Package io.helidon.http.media
Record Class MediaSupport.ReaderResponse<T>
java.lang.Object
java.lang.Record
io.helidon.http.media.MediaSupport.ReaderResponse<T>
- Type Parameters:
- T- type of entity
- Record Components:
- support- how is the response supported
- supplier- entity reader supplier, may be null if- MediaSupport.SupportLevel.NOT_SUPPORTED
- Enclosing interface:
- MediaSupport
public static record MediaSupport.ReaderResponse<T>(MediaSupport.SupportLevel support, Supplier<EntityReader<T>> supplier)
extends Record
Reader response.
- 
Constructor SummaryConstructorsConstructorDescriptionReaderResponse(MediaSupport.SupportLevel support, Supplier<EntityReader<T>> supplier) Creates an instance of aReaderResponserecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.supplier()Returns the value of thesupplierrecord component.support()Returns the value of thesupportrecord component.final StringtoString()Returns a string representation of this record class.static <T> MediaSupport.ReaderResponse<T> Unsupported reader response.
- 
Constructor Details
- 
Method Details- 
unsupportedUnsupported reader response.- Type Parameters:
- T- type of entity
- Returns:
- unsupported response (constant)
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
supportReturns the value of thesupportrecord component.- Returns:
- the value of the supportrecord component
 
- 
supplierReturns the value of thesupplierrecord component.- Returns:
- the value of the supplierrecord component
 
 
-