added copy and fixed cleaning of semicolons
This commit is contained in:
1 parent
e2c614c6de
commit
efb87c8497
7 files changed
+86
-17
No files matched your search
@@ -43,6 +43,15 @@ public class ListValue extends AbstractListValue implements ContainerValueInterf
|
||||
{
|
||||
return new ListValue(items);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Value deepcopy()
|
||||
{
|
||||
List<Value> copyItems = new ArrayList<>(items.size());
|
||||
for (Value entry: items) copyItems.add(entry.deepcopy());
|
||||
return new ListValue(copyItems);
|
||||
}
|
||||
|
||||
public ListValue(Collection<? extends Value> list)
|
||||
{
|
||||
items = new ArrayList<>();
|
||||
|
||||
Reference in new issue
Block a user