@Test public void testGetData() { List<String> data = new ArrayList<>(); data.add("s"); CollectionOperandNode operand = new CollectionOperandNode(DataType.INTEGER, data); assertSame(data, operand.getData()); assertEquals("s", operand.getData().get(0)); }
public List<String> getData() { return data; }
CollectionOperandNode extends OperandNode { public List<String> getData() { return data; } }
CollectionOperandNode extends OperandNode { public List<String> getData() { return data; } CollectionOperandNode(DataType dataType, List<String> data); }
CollectionOperandNode extends OperandNode { public List<String> getData() { return data; } CollectionOperandNode(DataType dataType, List<String> data); List<String> getData(); @Override String toString(); }
CollectionOperandNode extends OperandNode { public List<String> getData() { return data; } CollectionOperandNode(DataType dataType, List<String> data); List<String> getData(); @Override String toString();  }