/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping * @param oldLabel label to remove */ protected void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Removes a label from the label-to-index mapping. * * @param oldLabel label to remove */ private void removeLabel(int oldLabel) { labelToIndex.set(oldLabel, -1); }
/** * Adds a label and index to the label-to-index mapping * @param label new label * @param index index of block. */ protected void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Adds a label and index to the label-to-index mapping. * * @param label new label * @param index index of block. */ private void addLabelIndex(int label, int index) { int origSz = labelToIndex.size(); for (int i = 0; i <= (label - origSz); i++) { labelToIndex.add(-1); } labelToIndex.set(label, index); }
/** * Rebuilds the label-to-index mapping after a {@code shrinkToFit()}. * Note: This assumes that the labels that are in the list are the * same, although the indicies may have changed. */ private void rebuildLabelToIndex() { int szItems = size(); for (int i = 0; i < szItems; i++) { LabeledItem li = (LabeledItem) get0(i); if (li != null) { labelToIndex.set(li.getLabel(), i); } } }
/** * Rebuilds the label-to-index mapping after a {@code shrinkToFit()}. * Note: This assumes that the labels that are in the list are the * same, although the indicies may have changed. */ private void rebuildLabelToIndex() { int szItems = size(); for (int i = 0; i < szItems; i++) { LabeledItem li = (LabeledItem) get0(i); if (li != null) { labelToIndex.set(li.getLabel(), i); } } }
/** * Rebuilds the label-to-index mapping after a {@code shrinkToFit()}. * Note: This assumes that the labels that are in the list are the * same, although the indicies may have changed. */ private void rebuildLabelToIndex() { int szItems = size(); for (int i = 0; i < szItems; i++) { LabeledItem li = (LabeledItem) get0(i); if (li != null) { labelToIndex.set(li.getLabel(), i); } } }
/** * Rebuilds the label-to-index mapping after a {@code shrinkToFit()}. * Note: This assumes that the labels that are in the list are the * same, although the indicies may have changed. */ private void rebuildLabelToIndex() { int szItems = size(); for (int i = 0; i < szItems; i++) { LabeledItem li = (LabeledItem) get0(i); if (li != null) { labelToIndex.set(li.getLabel(), i); } } }