/** Safe getter for permutation. * Initializes permutation to identical permutation if it is null.<br> * index variable must not be null when this method called */ private int[] getPermutation() { if (permutation == null) { if (nodes == null) { nodes = index.getNodes().clone(); } permutation = new int[nodes.length]; for (int i = 0; i < nodes.length; permutation[i] = i++) ; } return permutation; }
Node[] localNodes = index.getNodes();
/** Safe getter for permutation. * Initializes permutation to identical permutation if it is null.<br> * index variable must not be null when this method called */ private int[] getPermutation () { if (permutation == null) { if (nodes == null) nodes = (Node[])index.getNodes().clone(); permutation = new int[nodes.length]; for (int i = 0; i < nodes.length; permutation[i] = i++); } return permutation; }
/** Safe getter for permutation. * Initializes permutation to identical permutation if it is null.<br> * index variable must not be null when this method called */ private int[] getPermutation () { if (permutation == null) { if (nodes == null) nodes = (Node[])index.getNodes().clone(); permutation = new int[nodes.length]; for (int i = 0; i < nodes.length; permutation[i] = i++); } return permutation; }
if (index == null) return; Node[] localNodes = index.getNodes();
if (index == null) return; Node[] localNodes = index.getNodes();