Package org.greenbytes.http.sfv
Class InnerList
- java.lang.Object
-
- org.greenbytes.http.sfv.InnerList
-
- All Implemented Interfaces:
Supplier<List<Item<?>>>,ListElement<List<Item<?>>>,Parameterizable<List<Item<?>>>,Type<List<Item<?>>>
public class InnerList extends Object implements ListElement<List<Item<?>>>, Parameterizable<List<Item<?>>>
Represents an Inner List.- See Also:
- Section 3.1.1 of RFC 9651
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Item<?>>get()ParametersgetParams()Get theParametersof thisItem.Stringserialize()Serialize.StringBuilderserializeTo(StringBuilder sb)Serialize to an existingStringBuilder.static InnerListvalueOf(List<Item<?>> value)Creates anInnerListinstance representing the specifiedList<Item>value.InnerListwithParams(Parameters params)Given an existingItem, return a new instance with the specifiedParameters.
-
-
-
Method Detail
-
valueOf
public static InnerList valueOf(List<Item<?>> value)
Creates anInnerListinstance representing the specifiedList<Item>value.- Parameters:
value- aList<Item>value.- Returns:
- a
InnerListrepresentingvalue.
-
withParams
public InnerList withParams(Parameters params)
Description copied from interface:ParameterizableGiven an existingItem, return a new instance with the specifiedParameters.- Specified by:
withParamsin interfaceParameterizable<List<Item<?>>>- Parameters:
params-Parametersto set (must be non-null)- Returns:
- new instance with specified
Parameters.
-
serializeTo
public StringBuilder serializeTo(StringBuilder sb)
Description copied from interface:TypeSerialize to an existingStringBuilder.- Specified by:
serializeToin interfaceType<List<Item<?>>>- Parameters:
sb- where to serialize to- Returns:
- the
StringBuilderso calls can be chained.
-
getParams
public Parameters getParams()
Description copied from interface:ParameterizableGet theParametersof thisItem.- Specified by:
getParamsin interfaceParameterizable<List<Item<?>>>- Returns:
- the parameters.
-
-