Package io.deephaven.server.plugin.type
Class ObjectTypes
java.lang.Object
io.deephaven.server.plugin.type.ObjectTypes
- All Implemented Interfaces:
ObjectTypeLookup
,ObjectTypeRegistration
@Singleton
public final class ObjectTypes
extends Object
implements ObjectTypeLookup, ObjectTypeRegistration
Provides synchronized object type
registration
and lookup
.
Object type registration that is an instances of ObjectTypeClassBase
receives special consideration, and
these objects have more efficient lookups.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.plugin.type.ObjectTypeLookup
ObjectTypeLookup.NoOp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindObjectType
(Object object) Find theObjectType
compatible withobject
.void
register
(ObjectType objectType) RegisterobjectType
.
-
Constructor Details
-
ObjectTypes
@Inject public ObjectTypes()
-
-
Method Details
-
findObjectType
Description copied from interface:ObjectTypeLookup
Find theObjectType
compatible withobject
. That is,ObjectType.isType(Object)
will betrue
forobject
.- Specified by:
findObjectType
in interfaceObjectTypeLookup
- Parameters:
object
- the object- Returns:
- the object type, if found
-
register
Description copied from interface:ObjectTypeRegistration
RegisterobjectType
.- Specified by:
register
in interfaceObjectTypeRegistration
- Parameters:
objectType
- the object type
-