Package org.greenbytes.http.sfv
Class OuterList
- java.lang.Object
-
- org.greenbytes.http.sfv.OuterList
-
- All Implemented Interfaces:
Supplier<List<ListElement<?>>>,Type<List<ListElement<?>>>
public class OuterList extends Object implements Type<List<ListElement<?>>>
Represents a List.- See Also:
- Section 3.1 of RFC 9651
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ListElement<?>>get()Stringserialize()Serialize.StringBuilderserializeTo(StringBuilder sb)Serialize to an existingStringBuilder.static OuterListvalueOf(List<ListElement<?>> value)Creates anOuterListinstance representing the specifiedList<Item>value.
-
-
-
Method Detail
-
valueOf
public static OuterList valueOf(List<ListElement<?>> value)
Creates anOuterListinstance representing the specifiedList<Item>value.- Parameters:
value- aList<Item>value.- Returns:
- a
OuterListrepresentingvalue.
-
serializeTo
public StringBuilder serializeTo(StringBuilder sb)
Description copied from interface:TypeSerialize to an existingStringBuilder.- Specified by:
serializeToin interfaceType<List<ListElement<?>>>- Parameters:
sb- where to serialize to- Returns:
- the
StringBuilderso calls can be chained.
-
serialize
public String serialize()
Description copied from interface:TypeSerialize.- Specified by:
serializein interfaceType<List<ListElement<?>>>- Returns:
- the serialization.
-
get
public List<ListElement<?>> get()
- Specified by:
getin interfaceSupplier<List<ListElement<?>>>
-
-