public void load(Iterator<ProbeLine> ps) { if (transform.equals(LogTransform.LOG_TO_EXP)) { ps = new MapperIterator<ProbeLine, ProbeLine>(new ExpMapper(), ps); } else if (transform.equals(LogTransform.EXP_TO_LOG)) { ps = new MapperIterator<ProbeLine, ProbeLine>(new LogMapper(), ps); } correction.load(ps); }
public Iterator<ProbeLine> iterator() { Iterator<ProbeLine> itr = correction.iterator(); if (transform.equals(LogTransform.LOG_TO_EXP)) { itr = new MapperIterator<ProbeLine, ProbeLine>(new LogMapper(), itr); } else if (transform.equals(LogTransform.EXP_TO_LOG)) { itr = new MapperIterator<ProbeLine, ProbeLine>(new ExpMapper(), itr); } return itr; }