mirror of
https://github.com/revanced/smali.git
synced 2025-05-01 15:14:32 +02:00
28 lines
533 B
Java
28 lines
533 B
Java
package ds.tree;
|
|
|
|
|
|
/**
|
|
* A simple standard implementation for a {@link Visitor}.
|
|
*
|
|
* @author Dennis Heidsiek
|
|
* @param <T>
|
|
* @param <R>
|
|
*/
|
|
public abstract class VisitorImpl<T, R> implements Visitor<T, R> {
|
|
|
|
protected R result;
|
|
|
|
public VisitorImpl() {
|
|
this.result = null;
|
|
}
|
|
|
|
public VisitorImpl(R initialValue) {
|
|
this.result = initialValue;
|
|
}
|
|
|
|
public R getResult() {
|
|
return result;
|
|
}
|
|
|
|
abstract public void visit(String key, RadixTreeNode<T> parent, RadixTreeNode<T> node);
|
|
} |