Class MarshallableDeque<T>
java.lang.Object
org.infinispan.marshall.protostream.impl.MarshallableDeque<T>
A wrapper for a
Deque of objects whose type is unknown until runtime. This is equivalent to utilising a
Deque 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> MarshallableDeque<T> static <T> MarshallableDeque<T> get()static <T> Deque<T> unwrap(MarshallableDeque<T> wrapper)
-
Method Details
-
create
- Parameters:
queue- theQueueto be wrapped as aDeque- Returns:
- a new
MarshallableDequeinstance containing the passed object if the object is not null, otherwise null. If the passed queue is not aDequeimplementation, a new one is created.
-
create
- Parameters:
deque- theDequeto be wrapped.- Returns:
- a new
MarshallableDequeinstance containing the passed object if the object is not null, otherwise null.
-
unwrap
- Parameters:
wrapper- theMarshallableDequeinstance to unwrap.- Returns:
- the wrapped
Dequeor null if the provided wrapper does not exist.
-
get
-