T
- the type of the objects createdpublic static interface OortObject.Factory<T>
OortObject
s.Modifier and Type | Method | Description |
---|---|---|
T |
newObject(java.lang.Object representation) |
Creates a new non-null object from the given
representation . |
T newObject(java.lang.Object representation)
representation
.
The representation
may be the result of JSON serialization,
and this factory may convert it to a more appropriate object, for
example from a JSON serialized Map
to a ConcurrentMap
.representation
- the representation of the object, may be null
to indicate to return a default, non-null objectCopyright © 2008–2017 The CometD Project. All rights reserved.