Introduce the concept of ProductAwareBuilder 31/5731/1
authorRobert Varga <rovarga@cisco.com>
Mon, 24 Mar 2014 19:28:23 +0000 (20:28 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 24 Mar 2014 19:43:10 +0000 (20:43 +0100)
commit9f5516a683a546cbb65c5523b9eae323708238d5
treebc6159d37af758c358e16a435c5cc5488635aba2
parent61dd54d0ca65bb0f2ad7cd9e1fc2d30856f0e1c1
Introduce the concept of ProductAwareBuilder

A ProductAwareBuilder is an builder which can act as a proxy
for its product in collections (obviously provided it is not
mutated while its used this way).

This functionality is useful for implemeting caches, where
the toInstance() call can be skipped as long as there is an
existing equal object.

Change-Id: I24c98dcb41491ba6265b373c34667e2a0ddfed86
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java [new file with mode: 0644]