estonlabs.cxtl.exchanges.bullish.api.v2.domain.Side Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
package estonlabs.cxtl.exchanges.bullish.api.v2.domain;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Getter
public enum Side {
BUY(true),
SELL(false);
public static Side side(boolean isBuy) {
return isBuy ? BUY : SELL;
}
public static Side map(Enum> otherType){
return Side.valueOf(otherType.name());
}
private final boolean isBuy;
}