Skip to content

Instantly share code, notes, and snippets.



Created Apr 26, 2013
What would you like to do?
Models a Stock for the purpose of this example.
package com.iankwalter.rhinostockexample;
* Models a Stock for the purpose of this example.
* @author Ian Kennington Walter
public class Stock {
Double netIncome;
Double totalDebt;
Double totalCash;
Double marketCap;
boolean isUndervalued;
public Double getNetIncome() {
return netIncome;
public void setNetIncome(Double netIncome) {
this.netIncome = netIncome;
public Double getTotalDebt() {
return totalDebt;
public void setTotalDebt(Double totalDebt) {
this.totalDebt = totalDebt;
public Double getTotalCash() {
return totalCash;
public void setTotalCash(Double totalCash) {
this.totalCash = totalCash;
public Double getMarketCap() {
return marketCap;
public void setMarketCap(Double marketCap) {
this.marketCap = marketCap;
public boolean isUndervalued() {
return isUndervalued;
public void setUndervalued(boolean undervalued) {
isUndervalued = undervalued;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.