From f6f76f49848a5d22f0f61c0e58977d24e64f2e1d Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Sun, 9 Jul 2023 00:12:08 +0200 Subject: [PATCH] Paths: add "items" getter --- .../src/main/kotlin/org/pgpainless/wot/query/Paths.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/query/Paths.kt b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/query/Paths.kt index e618acb3..a9890749 100644 --- a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/query/Paths.kt +++ b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/query/Paths.kt @@ -21,6 +21,11 @@ class Paths(private val _paths: MutableList) { return _paths.map { it.path } } + val items: List + get() { + return _paths.toList() + } + /** * Add a [Path] to the list. *