Package org.greenbytes.http.sfv
Interface Item<T>
-
- Type Parameters:
T- represented Java type
- All Superinterfaces:
ListElement<T>,Parameterizable<T>,Supplier<T>,Type<T>
- All Known Subinterfaces:
NumberItem<T>
- All Known Implementing Classes:
BooleanItem,ByteSequenceItem,DateItem,DecimalItem,DisplayStringItem,IntegerItem,StringItem,TokenItem
public interface Item<T> extends ListElement<T>, Parameterizable<T>
Marker interface for Items.- See Also:
- Section 3.3 of RFC 9651
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Item<T>withParams(Parameters params)Given an existingItem, return a new instance with the specifiedParameters.-
Methods inherited from interface org.greenbytes.http.sfv.Parameterizable
getParams
-
Methods inherited from interface org.greenbytes.http.sfv.Type
serialize, serializeTo
-
-
-
-
Method Detail
-
withParams
Item<T> withParams(Parameters params)
Description copied from interface:ParameterizableGiven an existingItem, return a new instance with the specifiedParameters.- Specified by:
withParamsin interfaceParameterizable<T>- Parameters:
params-Parametersto set (must be non-null)- Returns:
- new instance with specified
Parameters.
-
-