Class MarshallableList<T>
java.lang.Object
org.infinispan.marshall.protostream.impl.MarshallableList<T>
A wrapper for a
List of objects whose type is unknown until runtime. This is equivalent to utilising a
List without the overhead of creating a MarshallableObject per
entry.- Since:
- 16.0
- Author:
- Ryan Emerson
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MarshallableList<T> get()static <T> List<T> unwrap(MarshallableList<T> wrapper)
-
Method Details
-
create
- Parameters:
list- theListto be wrapped.- Returns:
- a new
MarshallableListinstance containing the passed object if the object is not null, otherwise null.
-
unwrap
- Parameters:
wrapper- theMarshallableListinstance to unwrap.- Returns:
- the wrapped
Listor null if the provided wrapper does not exist.
-
get
-