Created
July 26, 2018 14:45
-
-
Save ashkrit/62bf5ea945f6307c1282489cf19c8afa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Code for | |
| case class Trade(symbol: String, exchange: String, qty: Int, price: Double) | |
| */ | |
| public class Trade implements Product, Serializable | |
| { | |
| private final String symbol; | |
| public double price(){ | |
| return this.price; | |
| } | |
| public int qty(){ | |
| return this.qty; | |
| } | |
| public String exchange(){ | |
| return this.exchange; | |
| } | |
| public String symbol(){ | |
| return this.symbol; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment