public interface ObjectCache
Immutable
.
This interface does not enforce that interface contract simply because
there are third-party objects which fulfill this contract.Modifier and Type | Method and Description |
---|---|
<B extends ProductAwareBuilder<P>,P> |
getProduct(B builder)
Get a reference to an object equal to the product of a builder.
|
<T> T |
getReference(T object)
Get a reference for an object which is equal to specified object.
|
<T> T getReference(@Nullable T object)
T
- object typeobject
- Requested object, may be null<B extends ProductAwareBuilder<P>,P> P getProduct(@Nonnull B builder)
getReference(Object)
, this method has
the potential of completely eliding the product instantiation.P
- produced object typeB
- builder typebuilder
- Builder instance, may not be nullCopyright © 2017 OpenDaylight. All rights reserved.