Skip to content

Should ViewSet::getViews() return ModelView instead of View? #208

Closed Answered by simonbrowndotje
chrikoch asked this question in Q&A
Discussion options

You must be logged in to vote

You could just do the Kotlin equivalent of something like:

Set<ModelView> views = getViews().stream().filter(v -> v instanceof ModelView).map(v -> (ModelView)v).collect(Collectors.toSet());

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chrikoch
Comment options

@simonbrowndotje
Comment options

@chrikoch
Comment options

Answer selected by chrikoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #207 on April 17, 2023 15:44.