maps unpack
This commit is contained in:
1 parent
5ec664240f
commit
e22474156b
6 files changed
+35
-32
No files matched your search
@@ -48,6 +48,12 @@ public class MapValue extends AbstractListValue implements ContainerValueInterfa
|
||||
return new ArrayList<>(map.keySet()).iterator();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Value> unpack()
|
||||
{
|
||||
return map.entrySet().stream().map(e -> ListValue.of(e.getKey(), e.getValue())).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getString()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user