com.quotemedia.streamer.client.mapper.OrderSide Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of streamerclient-java-core Show documentation
Show all versions of streamerclient-java-core Show documentation
Java streaming client that provides easy-to-use client APIs to connect and subscribe to QuoteMedia's market data streaming services. https://quotemedia.com/
The newest version!
package com.quotemedia.streamer.client.mapper;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
import java.util.Map;
/**
*
*/
// com.quotemedia.datacache.data.OrderSide
public enum OrderSide {
BUYSIDE('B'),
SELLSIDE('S');
private final char id;
OrderSide(final char id) {
this.id = id;
}
public char id() {
return this.id;
}
@JsonValue
public char getValue(){
return id;
}
private static final Map IDtoENUM;
static {
IDtoENUM = new HashMap<>();
for (final OrderSide val : values()) {
IDtoENUM.put(val.id, val);
}
}
public static OrderSide forid(final char id) {
final OrderSide val = IDtoENUM.get(id);
if (val == null) {
throw new IllegalArgumentException("Invalid OrderSide id " + id);
}
return val;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy