Interface InstanceCookie.Of

Enhanced cookie that can answer queries about the type of the
instance it creates. It does not add any additional ability except to
improve performance, because it is not necessary to load
the actual class of the object into memory.

Method Detail

instanceOf

Checks if the object created by this cookie is an
instance of the given type. The same as
type.isAssignableFrom(instanceClass())
But this can prevent the actual class from being
loaded into the Java VM.