Thomas
11/07/2022, 1:37 PMpublic interface Base
public interface ExtendedBase: Base
public abstract class MyFlow<T> : Flow<T.() -> Unit>
public class MyFlow2<T : Base> : MyFlow<() -> T>() {
...
}
public class Container {
public val myFlow: MyFlow2<ExtendedBase>
}
I want to know the resolved type of the underlying flow i.e. myFlow
is a flow that emits values of type (() -> ExtendedBase).() -> Unit
(it is a Flow<(() -> ExtendedBase).() -> Unit>
).
Are there any helper functions to get this information or would I have to write the code myself?Jiaxiang
11/07/2022, 6:49 PMThomas
11/08/2022, 7:54 AMFlow<List<Int>>
are there any helper functions to get the complete generic argument i.e. List<Int>
or do I have to resolve it myself?Jiaxiang
11/08/2022, 8:55 PMFlow
you should be able to get List<Int>
as a result?Thomas
11/09/2022, 12:57 PMFlow<List<Map<Int, String.() -> Unit>>
for example.Jiaxiang
11/09/2022, 5:56 PMtoString
implementations, if it does not fit your use case, then you will have to write your own logics.Thomas
11/11/2022, 9:15 AM