Let's say I have the following:
AtomicReference < String> tmpRef_nullStr = new AtomicReference < String>(null);
and
AtomicReference < String> tmpRef_helloStr = new AtomicReference < String>("hello");
Is there a way to check the type of these AtomicReferences so that in both cases returns a type of String?