We can improve type safety a bit by exposing the fact the backing
snapshot supports cursors.
Change-Id: If65549d6a28851c0abd1c8b826e48503ef12860c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return Optional.of(b.build());
}
return Optional.of(b.build());
}
- DataTreeSnapshot getSnapshot() {
+ CursorAwareDataTreeSnapshot getSnapshot() {
Preconditions.checkState(sealedModification != null, "Proxy %s is not sealed yet", getIdentifier());
return sealedModification;
}
Preconditions.checkState(sealedModification != null, "Proxy %s is not sealed yet", getIdentifier());
return sealedModification;
}