overflowdb.tp3.Converters Maven / Gradle / Ivy
package overflowdb.tp3;
import overflowdb.Direction;
public class Converters {
public static Direction fromTinker(org.apache.tinkerpop.gremlin.structure.Direction tinkerDirection) {
switch (tinkerDirection) {
case OUT: return Direction.OUT;
case IN: return Direction.IN;
case BOTH: return Direction.BOTH;
default: throw new AssertionError("unknown tinkerpop Direction: " + tinkerDirection);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy