com.tinkerpop.blueprints.Direction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blueprints-core Show documentation
Show all versions of blueprints-core Show documentation
Core interfaces and utilities for Blueprints
package com.tinkerpop.blueprints;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public enum Direction {
OUT, IN, BOTH;
public static final Direction[] proper = new Direction[]{OUT, IN};
public Direction opposite() {
if (this.equals(OUT))
return IN;
else if (this.equals(IN))
return OUT;
else
return BOTH;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy