Add YangInstanceIdentifier.createReverse(Deque)
There are use cases when we need to instantiate a YangInstanceIdentifier
and we have the components available in a stack (i.e. deque). We can
provide an optimized instantiator which will walk the stack in reverse
order, reducing the need for one invert operation.
This patch adds two methods, one operating on a Deque<PathArgument>
and one operating on Deque<Object> with an extractor function.
Change-Id: If2b05d62dcbfb5d37415a2ecb241c8265ceb1be6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>