@Test public void testConstant() { ShortConstant constant = new ShortConstant(22, (short) 143); Assert.assertEquals(143, constant.getShort(null)); Assert.assertTrue(constant.isConstant()); }
@Override public short getShort(Record rec) { return value; }
ShortConstant extends ShortFunction implements ConstantFunction { @Override public short getShort(Record rec) { return value; } }
ShortConstant extends ShortFunction implements ConstantFunction { @Override public short getShort(Record rec) { return value; } ShortConstant(int position, short value); }
ShortConstant extends ShortFunction implements ConstantFunction { @Override public short getShort(Record rec) { return value; } ShortConstant(int position, short value); @Override short getShort(Record rec); }
ShortConstant extends ShortFunction implements ConstantFunction { @Override public short getShort(Record rec) { return value; } ShortConstant(int position, short value); @Override short getShort(Record rec);  }