(String treeId)
| 42 | |
| 43 | |
| 44 | public static List<ZitObject> iteratorTreeEntries(String treeId) { |
| 45 | final String tree = ZitContext.getObjectAsString(treeId, "tree"); |
| 46 | assert tree != null; |
| 47 | return Arrays.stream(tree.split(ConstantVal.NEW_LINE)) |
| 48 | .map(object -> object.split(ConstantVal.SINGLE_SPACE)) |
| 49 | .map(objectFields -> new ZitObject(objectFields[0], objectFields[1], objectFields[2])) |
| 50 | .collect(Collectors.toList()); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * only one layer |
no test coverage detected