public InitializationData(EventList<E> sourceElements, Format<E> format, ExpansionModel<E> expansionModel) { this.format = format; this.expansionModel = expansionModel; this.sourceNodes = new FunctionList<E,Node<E>>(sourceElements, new ElementToTreeNodeFunction<E>(format, expansionModel), NO_OP_FUNCTION); this.nodeComparator = comparatorToNodeComparator(format); this.sortedList = new SortedList<Node<E>>(sourceNodes, nodeComparator); }
public Node<E> reevaluate(E sourceValue, Node<E> transformedValue) { assert(!transformedValue.virtual); Node<E> result = evaluate(sourceValue); result.expanded = transformedValue.expanded; return result; }
public InitializationData(EventList<E> sourceElements, Format<E> format, ExpansionModel<E> expansionModel) { this.format = format; this.expansionModel = expansionModel; this.sourceNodes = new FunctionList<E,Node<E>>(sourceElements, new ElementToTreeNodeFunction<E>(format, expansionModel), NO_OP_FUNCTION); this.nodeComparator = comparatorToNodeComparator(format); this.sortedList = new SortedList<Node<E>>(sourceNodes, nodeComparator); }
public InitializationData(EventList<E> sourceElements, Format<E> format, ExpansionModel<E> expansionModel) { this.format = format; this.expansionModel = expansionModel; this.sourceNodes = new FunctionList<E,Node<E>>(sourceElements, new ElementToTreeNodeFunction<E>(format, expansionModel), NO_OP_FUNCTION); this.nodeComparator = comparatorToNodeComparator(format); this.sortedList = new SortedList<Node<E>>(sourceNodes, nodeComparator); }
@Override public Node<E> reevaluate(E sourceValue, Node<E> transformedValue) { assert(!transformedValue.virtual); Node<E> result = evaluate(sourceValue); result.expanded = transformedValue.expanded; return result; }
public Node<E> reevaluate(E sourceValue, Node<E> transformedValue) { assert(!transformedValue.virtual); Node<E> result = evaluate(sourceValue); result.expanded = transformedValue.expanded; return result; }