Make Variant/CheckedValue subclassable 64/71664/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 2 May 2018 12:39:12 +0000 (14:39 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 2 May 2018 12:39:12 +0000 (14:39 +0200)
commit7d20a00e7721aea50a8bc253c10dd4fa29d2314f
treed248501a779129cc36e12d1a1e127f3de48b48e0
parent70fccf194fb80d172602950752d3259c58f5bcfc
Make Variant/CheckedValue subclassable

It is useful to specialized these two classes outside of concepts,
for example by providing alternative constructs on top of Variant
and providing a type-bound domain-specific CheckedValue.

Expose constructors and first()/second() to subclasses so that it
is feasible to perform these things.

Change-Id: I1253ba2b0ed115b0b3f6dc6f07138634f15091de
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/CheckedValue.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Variant.java