Class MarshallableCollection<T>
java.lang.Object
org.infinispan.marshall.protostream.impl.MarshallableCollection<T>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MarshallableCollection<T> create(Collection<T> collection) get()static <T> Collection<T> unwrap(MarshallableCollection<T> wrapper)
-
Method Details
-
create
- Parameters:
collection- theCollectionto be wrapped.- Returns:
- a new
MarshallableCollectioninstance containing the passed object if the object is not null, otherwise null.
-
unwrap
- Parameters:
wrapper- theMarshallableCollectioninstance to unwrap.- Returns:
- the wrapped
Collectionor null if the provided wrapper does not exist.
-
get
-