Eliminate unneeded YangLocationPath subclasses 20/81020/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 20 Mar 2019 07:59:22 +0000 (08:59 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 20 Mar 2019 09:26:07 +0000 (10:26 +0100)
commitba9a6e8b099b98dc3522b06a5e2e255f0be65256
tree19627e1d205c5ce3dd5a59d6a0084a0c11df6f9b
parent716ec69210f2c7e3cc4bd865b41fdab77e1c43a5
Eliminate unneeded YangLocationPath subclasses

*WithSteps subclasses are not that helpful, as we only have single
onjects which do not have steps. Integrate steps into YangLocationPath,
making it bimorphic (and its getSteps() method monomorphic).

Also clean up arguments/returns, so that we propagate only Immutable
collections.

Change-Id: Ie0cdd2fb558b0b51071fd49eded9bfa1f6e20b1b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-xpath-api/src/main/java/org/opendaylight/yangtools/yang/xpath/api/YangLocationPath.java