/** * Chop the cache off at the specified index * * @param indexArray */ public synchronized void cut(int[] indexArray) { if (indexArray.length > 0) { int[] newIndex = tail(indexArray); NamedNode node = nodeAt(newIndex); if (node != null) { if (node.children.size() >= indexArray[indexArray.length - 1]) { node.children.set(indexArray[indexArray.length - 1], null); } } } }
/** * Chop the cache off at the specified index * * @param indexArray */ public synchronized void cut(int[] indexArray) { if (indexArray.length > 0) { int[] newIndex = tail(indexArray); NamedNode node = nodeAt(newIndex); if (node != null) { if (node.children.size() >= indexArray[indexArray.length - 1]) { node.children.set(indexArray[indexArray.length - 1], null); } } } }
/** * Chop the cache off at the specified index * * @param indexArray */ public synchronized void cut(int[] indexArray) { if (indexArray.length > 0) { int[] newIndex = tail(indexArray); NamedNode node = nodeAt(newIndex); if (node != null) { if (node.children.size() >= indexArray[indexArray.length - 1]) { node.children.set(indexArray[indexArray.length - 1], null); } } } }