Package com.nimbusds.jose.util
Class Container<T>
- java.lang.Object
-
- com.nimbusds.jose.util.Container<T>
-
- Type Parameters:
T
- the type of the item in this container.
@NotThreadSafe public class Container<T> extends Object
Generic container of items of any type.This class is not thread-safe, if thread safety is required it should be done externally to the class.
The author believes he borrowed the idea for such a class many years ago from a man called Boris Karadjov.
- Version:
- 2016-10-13
- Author:
- Dimitar A. Stoikov
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
Gets the contained item.void
set(T item)
Sets the contained item.
-