Commit cac891e3 authored by Nico Mack's avatar Nico Mack

Added convenience duplicate method

parent 8af4ee59
......@@ -104,6 +104,13 @@ public class VectorVariable<B> extends Variable<List<B>> implements List<B> {
return variable;
}
public boolean duplicate(VectorVariable<B> target) {
List<B> copied = new ArrayList<>();
copied.addAll(target.getValue());
this.setValue(copied);
return true;
}
/** {@inheritDoc} */
@Override
public int size() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment