Clone EpoxyModel with @EpoxyClass annotation
See original GitHub issueIs there a way to clone an EpoxyModel with generated attributes.
Something like this in PhotoModel.java:
@Override public Object clone() {
return new PhotoModel_()
.id(this.id())
.title(this.title)
.imageUrl(this.imageUrl);
}
Because generated class in PhotoModel_.java calls this, instead of the super.clone() method.
@Override
public PhotoModel_ clone() {
super.clone();
return this;
}
Is there a way to not generate overriden function?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can look into it after the #198 😃
Oh, I missed it somehow. Making method
final
is a really nice solution.