public static interface InstanceCookie.Of extends InstanceCookie
InstanceCookie.Of
Modifier and Type | Method and Description |
---|---|
boolean |
instanceOf(Class<?> type)
Checks if the object created by this cookie is an
instance of the given type.
|
instanceClass, instanceCreate, instanceName
boolean instanceOf(Class<?> type)
type.isAssignableFrom(instanceClass())
But this can prevent the actual class from being
loaded into the Java VM.type
- the class type we want to check