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

io.coinapi.rest.Exchange Maven / Gradle / Ivy

The newest version!
package io.coinapi.rest;

/**
 * Stores all the state for an exchange, as described in https://docs.coinapi.io/#list-all-exchanges.
 * 

* This class is multithread safe: it is immutable. * In particular, it is always properly constructed, * all of its fields are final, * and none of their state can be changed after construction. * See p. 53 of Java Concurrency In Practice for more discussion. */ public class Exchange { /** Our exchange identifier */ private final String exchange_id; /** Display name of the exchange */ private final String name; /** Exchange website address */ private final String website; public Exchange(String exchange_id, String name, String website) { this.exchange_id = exchange_id; this.name = name; this.website = website; } public String get_exchange_id() { return exchange_id; } public String get_name() { return name; } public String get_website() { return website; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy