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

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

The newest version!
package io.coinapi.rest;

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

* 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 Asset { /** Our asset identifier. Superset of the ISO 4217 currency codes standard */ private final String asset_id; // /** Display name of the asset */ private final String name; /** true for cryptocurrency assets, false otherwise */ private final boolean type_is_crypto; public Asset(String asset_id, String name, boolean type_is_crypto) { this.asset_id = asset_id; this.name = name; this.type_is_crypto = type_is_crypto; } public String get_asset_id() { return asset_id; } public String get_name() { return name; } public boolean is_type_crypto() { return type_is_crypto; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy