Kotlin generics multiple upper bounds (as OR / union construct)

前端 未结 0 1938
挽巷
挽巷 2021-01-25 16:31

I\'m wondering whether it\'s possible to create a generic class, that accepts an instance of type T, which is limited to (e.g.) an instance of String o

相关标签:
回答
  • 消灭零回复
提交回复
热议问题