/** {@inheritDoc} */ @Override public List<E> get(int index) { return groupLists.get(index).get(); }
/** {@inheritDoc} */ @Override public T0 get(int index) { return tree.get(index ).get(); }
/** {@inheritDoc} */ @Override public T0 get(int index) { return tree.get(index ).get(); }
/** {@inheritDoc} */ @Override public List<E> get(int index) { return groupLists.get(index).get(); }
/** {@inheritDoc} */ @Override public List<E> get(int index) { return groupLists.get(index).get(); }
/** {@inheritDoc} */ @Override public T0 get(int index) { return tree.get(index ).get(); }
@Override public EventList<E> get(int index) { return groupLists.get(index).get(); }
this.node = ( SimpleNode < T0> )tree.get(currentIndex );
/** {@inheritDoc} */ @Override protected int getSourceIndex(int mutationIndex) { Element sortedNode = sorted.get(mutationIndex); Element unsortedNode = (Element)sortedNode.get(); return unsorted.indexOfNode(unsortedNode, ALL_COLORS); }
/** {@inheritDoc} */ @Override protected int getSourceIndex(int mutationIndex) { Element sortedNode = sorted.get(mutationIndex); Element unsortedNode = (Element)sortedNode.get(); return unsorted.indexOfNode(unsortedNode, ALL_COLORS); }
/** {@inheritDoc} */ @Override protected int getSourceIndex(int mutationIndex) { Element sortedNode = sorted.get(mutationIndex); Element unsortedNode = (Element)sortedNode.get(); return unsorted.indexOfNode(unsortedNode, ALL_COLORS); }
/** * Get the child element for the specified child index. */ private ChildElement<E> getChildElement(int childIndex) { if(childIndex < 0) throw new IndexOutOfBoundsException("Invalid index: " + childIndex); if(childIndex >= size()) throw new IndexOutOfBoundsException("Index: " + childIndex + ", Size: " + size()); // get the child element int parentIndex = barcode.getBlackBeforeWhite(childIndex); return childElements.get(parentIndex).get(); }
/** * Get the child element for the specified child index. */ private ChildElement<E> getChildElement(int childIndex) { if(childIndex < 0) throw new IndexOutOfBoundsException("Invalid index: " + childIndex); if(childIndex >= size()) throw new IndexOutOfBoundsException("Index: " + childIndex + ", Size: " + size()); // get the child element int parentIndex = barcode.getBlackBeforeWhite(childIndex); return childElements.get(parentIndex).get(); }
/** * Get the child element for the specified child index. */ private ChildElement<E> getChildElement(int childIndex) { if(childIndex < 0) throw new IndexOutOfBoundsException("Invalid index: " + childIndex); if(childIndex >= size()) throw new IndexOutOfBoundsException("Index: " + childIndex + ", Size: " + size()); // get the child element int parentIndex = barcode.getBlackBeforeWhite(childIndex); return childElements.get(parentIndex).get(); }
/** {@inheritDoc} */ @Override public E get(int index) { Object type = insertedSeparators.get(index); if(type == SEPARATOR) return (E)separators.get(getSeparatorIndex(index)).get(); else if(type == SOURCE_ELEMENT) return source.get(getSourceIndex(index)); else throw new IllegalStateException(); }
/** {@inheritDoc} */ @Override public E get(int index) { Object type = insertedSeparators.get(index); if(type == SEPARATOR) return (E)separators.get(getSeparatorIndex(index)).get(); else if(type == SOURCE_ELEMENT) return source.get(getSourceIndex(index)); else throw new IllegalStateException(); }
/** {@inheritDoc} */ @Override public E get(int index) { Object type = insertedSeparators.get(index); if(type == SEPARATOR) return (E)separators.get(getSeparatorIndex(index)).get(); else if(type == SOURCE_ELEMENT) return source.get(getSourceIndex(index)); else throw new IllegalStateException(); }
/** {@inheritDoc} */ @Override public E get(int index) { Object type = insertedSeparators.get(index); if(type == SEPARATOR) return (E)separators.get(getSeparatorIndex(index)).get(); else if(type == SOURCE_ELEMENT) return source.get(getSourceIndex(index)); else throw new IllegalStateException(); }
/** * Statically build the separators data structures. */ private void rebuildSeparators() { // clear the initial state of these separators insertedSeparators = new Barcode(); separators = new SimpleTree<GroupSeparator>(); // prepare the separator list insertedSeparators.add(0, SOURCE_ELEMENT, source.size()); for(BarcodeIterator i = grouper.getBarcode().iterator(); i.hasNextColour(Grouper.UNIQUE); ) { i.nextColour(Grouper.UNIQUE); int groupIndex = i.getColourIndex(Grouper.UNIQUE); int sourceIndex = i.getIndex(); insertedSeparators.add(groupIndex + sourceIndex, SEPARATOR, 1); Element<GroupSeparator> node = separators.add(groupIndex, new GroupSeparator(), 1); node.get().setNode(node); node.get().applyLimit(defaultLimit, false); } // update the cached values in all separators for(int i = 0; i < separators.size(); i++) { separators.get(i).get().updateCachedValues(); } }
/** * Statically build the separators data structures. */ private void rebuildSeparators() { // clear the initial state of these separators insertedSeparators = new Barcode(); separators = new SimpleTree<>(); // prepare the separator list insertedSeparators.add(0, SOURCE_ELEMENT, source.size()); for(BarcodeIterator i = grouper.getBarcode().iterator(); i.hasNextColour(Grouper.UNIQUE); ) { i.nextColour(Grouper.UNIQUE); int groupIndex = i.getColourIndex(Grouper.UNIQUE); int sourceIndex = i.getIndex(); insertedSeparators.add(groupIndex + sourceIndex, SEPARATOR, 1); Element<GroupSeparator> node = separators.add(groupIndex, new GroupSeparator(), 1); node.get().setNode(node); node.get().applyLimit(defaultLimit, false); } // update the cached values in all separators for(int i = 0; i < separators.size(); i++) { separators.get(i).get().updateCachedValues(); } }