All Downloads are FREE. Search and download functionalities are using the official Maven repository.

estonlabs.cxtl.exchanges.bullish.api.v2.domain.Side Maven / Gradle / Ivy

There is a newer version: 1.4.14
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy