/** Refreshes the nodes for given info. * @param info the info * @return the nodes */ public void useNodes (Children.Info info, Collection list) { info.length = list.size (); getMap().put (info, list); }
/** Refreshes the nodes for given info. * @param info the info * @return the nodes */ public void useNodes (Children.Info info, Collection list) { info.length = list.size (); getMap().put (info, list); }
/** Gets the nodes for given info. * @param info the info * @return the nodes */ public Collection nodesFor (Children.Info info) { Collection nodes = (Collection)getMap().get (info); if (nodes == null) { nodes = info.entry.nodes (); info.length = nodes.size (); getMap().put (info, nodes); } return nodes; }
/** Gets the nodes for given info. * @param info the info * @return the nodes */ public Collection nodesFor (Children.Info info) { Collection nodes = (Collection)getMap().get (info); if (nodes == null) { nodes = info.entry.nodes (); info.length = nodes.size (); getMap().put (info, nodes); } return nodes; }