@Test public void testConstant() { IntConstant constant = new IntConstant(10, 200); Assert.assertTrue(constant.isConstant()); Assert.assertEquals(200, constant.getInt(null)); }
@Override public int getInt(Record rec) { return value; }
IntConstant extends IntFunction implements ConstantFunction { @Override public int getInt(Record rec) { return value; } }
IntConstant extends IntFunction implements ConstantFunction { @Override public int getInt(Record rec) { return value; } IntConstant(int position, int value); }
IntConstant extends IntFunction implements ConstantFunction { @Override public int getInt(Record rec) { return value; } IntConstant(int position, int value); @Override int getInt(Record rec); }
IntConstant extends IntFunction implements ConstantFunction { @Override public int getInt(Record rec) { return value; } IntConstant(int position, int value); @Override int getInt(Record rec);  }