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 supportedsupplier- entity reader supplier, may be null ifMediaSupport.SupportLevel.NOT_SUPPORTED
- Enclosing interface:
MediaSupport
public static record MediaSupport.ReaderResponse<T>(MediaSupport.SupportLevel support, Supplier<EntityReader<T>> supplier)
extends Record
Reader response.
-
Constructor Summary
ConstructorsConstructorDescriptionReaderResponse(MediaSupport.SupportLevel support, Supplier<EntityReader<T>> supplier) Creates an instance of aReaderResponserecord 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.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
-
unsupported
Unsupported reader response.- Type Parameters:
T- type of entity- Returns:
- unsupported response (constant)
-
toString
-
hashCode
-
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
-
supplier
-