net.sourceforge.plantuml.utils.InspectorUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.utils;
import java.util.List;
public abstract class InspectorUtils {
// ::remove file when __HAXE__
private InspectorUtils() {
}
public static Inspector inspector(final List list) {
return new Inspector() {
private int pos = 0;
@Override
public O peek(int ahead) {
final int tmp = pos + ahead;
if (tmp < list.size())
return list.get(tmp);
return null;
}
@Override
public void jump() {
pos++;
}
};
}
}