java - Generating lazy loaders in Android Studio -
i need instantiate lot of fields in "lazy" way. there plugin android studio generate getters lazy instantiation , create life easier? need getter this:
public string getname() { if(mname == null){ mname = "some value here" } homecoming mname; }
go class want implement getters , setters, nail ctrl + insert , dialog appear, click "getter" or "setter" , take variables want implement getters/setters for.
this works override , implement methods classes extend.
hope helps, happy coding.
java android lazy-evaluation
No comments:
Post a Comment