@Test public void getValueOnFixedBooleanIndicator() { BarSeries series = new BaseBarSeries(); FixedBooleanIndicator fixedBooleanIndicator = new FixedBooleanIndicator(series, false, false, true, false, true); Assert.assertFalse(fixedBooleanIndicator.getValue(0)); Assert.assertFalse(fixedBooleanIndicator.getValue(1)); Assert.assertTrue(fixedBooleanIndicator.getValue(2)); Assert.assertFalse(fixedBooleanIndicator.getValue(3)); Assert.assertTrue(fixedBooleanIndicator.getValue(4)); }
@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);  }