com.activitystream.model.relations.Direction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of as-sdk Show documentation
Show all versions of as-sdk Show documentation
AS-SDK is a java library to allow easy interoperability with Activity Stream.
package com.activitystream.model.relations;
public enum Direction {
OUT,
IN,
BOTH;
public static final Direction[] proper = new Direction[]{OUT, IN};
private Direction() {
}
public Direction opposite() {
if (this.equals(OUT)) {
return IN;
} else {
return this.equals(IN) ? OUT : BOTH;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy