/** * Copyright (c): Uwe Schmidt, FH Wedel * * You may study, modify and distribute this source code * FOR NON-COMMERCIAL PURPOSES ONLY. * This copyright message has to remain unchanged. * * Note that this document is provided 'as is', * WITHOUT WARRANTY of any kind either expressed or implied. */ /** * * f(i) = c * * e.g.: 1 1 1 1 1 ... */ //-------------------- public class Const extends Sequence { private long value; public Const() { this(0); } public Const(long value) { this.value = value; } public long next() { return value; } } //--------------------