/** * @return either nodes associated with this children or null if they are not created */ public Node[] testNodes() { ChildrenArray arr = array.get(); if (arr == null) { return null; } try { Children.PR.enterReadAccess(); return arr.nodes(); } finally { Children.PR.exitReadAccess(); } }
nodes = tmpArray.nodes(); } finally { Children.PR.exitReadAccess();
/** @return either nodes associated with this children or null if * they are not created */ private Node[] testNodes () { ChildrenArray arr = (ChildrenArray)array.get (); return arr == null ? null : arr.nodes (); }
/** @return either nodes associated with this children or null if * they are not created */ private Node[] testNodes () { ChildrenArray arr = (ChildrenArray)array.get (); return arr == null ? null : arr.nodes (); }
/** This method can be called by subclasses that * directly modify the nodes collection to update the * state of the nodes appropriatelly. * This method should be called under * MUTEX.writeAccess. */ final void refreshImpl () { if ( isInitialized() ) { Array.this.refreshEntry (getNodesEntry ()); super.getArray (null).nodes (); } else if ( nodes != null ) { for( Iterator it = nodes.iterator(); it.hasNext(); ) { Node n = (Node)it.next(); n.assignTo( this, -1 ); } } }
/** This method can be called by subclasses that * directly modify the nodes collection to update the * state of the nodes appropriatelly. * This method should be called under * MUTEX.writeAccess. */ final void refreshImpl () { if ( isInitialized() ) { Array.this.refreshEntry (getNodesEntry ()); super.getArray (null).nodes (); } else if ( nodes != null ) { for( Iterator it = nodes.iterator(); it.hasNext(); ) { Node n = (Node)it.next(); n.assignTo( this, -1 ); } } }
PR.enterReadAccess (); nodes = array.nodes (); } finally { PR.exitReadAccess ();
PR.enterReadAccess (); nodes = array.nodes (); } finally { PR.exitReadAccess ();