Skip to content

Instantly share code, notes, and snippets.

@ashkrit
Created July 26, 2018 14:45
Show Gist options
  • Select an option

  • Save ashkrit/62bf5ea945f6307c1282489cf19c8afa to your computer and use it in GitHub Desktop.

Select an option

Save ashkrit/62bf5ea945f6307c1282489cf19c8afa to your computer and use it in GitHub Desktop.
/*
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