This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
Actually a BasicDBObject class is a list of Objects.
While querying you can directly cast to a DBObject. if you are not sure about what the object is, then you can add check whether the object is instanceOf DBObject.
if you are not sure about what the object is, then you can add check whether the object is instanceOf DBObject as below
posted 3 years ago
I'm not following. In my example the DBList is a list of DBRefs these are not DBObjects and casting does not work.
Am I reading you correctly?
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!