Package org.greenbytes.http.sfv
Interface Parameterizable<T>
-
- Type Parameters:
T- represented Java type
- All Known Subinterfaces:
Item<T>,ListElement<T>,NumberItem<T>
- All Known Implementing Classes:
BooleanItem,ByteSequenceItem,DateItem,DecimalItem,DisplayStringItem,InnerList,IntegerItem,StringItem,TokenItem
public interface Parameterizable<T> extends Type<T>
Common interface for allTypes that can carryParameters.- See Also:
- Section 3.1.2 of RFC 9651
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParametersgetParams()Get theParametersof thisItem.Parameterizable<T>withParams(Parameters params)Given an existingItem, return a new instance with the specifiedParameters.-
Methods inherited from interface org.greenbytes.http.sfv.Type
serialize, serializeTo
-
-
-
-
Method Detail
-
withParams
Parameterizable<T> withParams(Parameters params)
Given an existingItem, return a new instance with the specifiedParameters.- Parameters:
params-Parametersto set (must be non-null)- Returns:
- new instance with specified
Parameters.
-
getParams
Parameters getParams()
Get theParametersof thisItem.- Returns:
- the parameters.
-
-