@Test public void getValueOnFixedDecimalIndicator() { BarSeries series = new BaseBarSeries(); FixedDecimalIndicator fixedDecimalIndicator = new FixedDecimalIndicator(series, 13.37, 42, -17); assertNumEquals(13.37, fixedDecimalIndicator.getValue(0)); assertNumEquals(42, fixedDecimalIndicator.getValue(1)); assertNumEquals(-17, fixedDecimalIndicator.getValue(2)); fixedDecimalIndicator = new FixedDecimalIndicator(series, "3.0", "-123.456", "0.0"); assertNumEquals("3.0", fixedDecimalIndicator.getValue(0)); assertNumEquals("-123.456", fixedDecimalIndicator.getValue(1)); assertNumEquals("0.0", fixedDecimalIndicator.getValue(2)); }
@Override public T getValue(int index) { return values.get(index); }
FixedIndicator extends AbstractIndicator<T> { @Override public T getValue(int index) { return values.get(index); } }
FixedIndicator extends AbstractIndicator<T> { @Override public T getValue(int index) { return values.get(index); } @SafeVarargs  FixedIndicator(BarSeries series, T... values); }
FixedIndicator extends AbstractIndicator<T> { @Override public T getValue(int index) { return values.get(index); } @SafeVarargs  FixedIndicator(BarSeries series, T... values); void addValue(T value); @Override T getValue(int index); }
FixedIndicator extends AbstractIndicator<T> { @Override public T getValue(int index) { return values.get(index); } @SafeVarargs  FixedIndicator(BarSeries series, T... values); void addValue(T value); @Override T getValue(int index);  }