InstanceCookie
, Node.Cookie
public static interface InstanceCookie.Of extends InstanceCookie
InstanceCookie.Of
Modifier and Type | Method | 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 checkBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.