@Override public PropertyState getProperty(String name) { return head.update().getCurrentNodeState().getProperty(checkNotNull(name)); }
@Override public PropertyState getProperty(String name) { return head.update().getCurrentNodeState().getProperty(checkNotNull(name)); }
@Override public Head update() { if (revision != builder.rootBuilder.baseRevision) { // the root builder's base state has been reset: transition back // to unconnected and connect again if necessary. // No need to pass base() instead of base as the subsequent // call to update will take care of updating to the latest state. builder.head = new UnconnectedHead(builder, builder.base); return builder.head.update(); } else { return this; } }
@Override public Head update() { if (revision != builder.rootBuilder.baseRevision) { // the root builder's base state has been reset: transition back // to unconnected and connect again if necessary. // No need to pass base() instead of base as the subsequent // call to update will take care of updating to the latest state. builder.head = new UnconnectedHead(builder, builder.base); return builder.head.update(); } else { return this; } }
/** * Update the head of this builder to reflect the actual connected state. * @return head of this builder */ private Head head() { return head.update(); }
/** * Update the head of this builder to reflect the actual connected state. * @return head of this builder */ private Head head() { return head.update(); }