Answer the question
In order to leave comments, you need to log in
How to replace the word "set" in methods?
Hello. What can replace the set prefix in setters in a class?
I would like that when using autocomplete in the development environment, a list of only my setters falls out. For example, if I write a widget - a viewgroup heir, then there will be a huge list of setters, both mine and from the parent class. What are the options?
Answer the question
In order to leave comments, you need to log in
set_ or put , or no prefixes at all:
public String Title() { //get
...
}
public void Title(String title) { //set
...
}
set can be replaced with value(value), get with share(share).
public void valuveCatName(){
this.catName = catName;
}
public String shareCatName(){
return catName;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question