Top "Getter" questions

A getter is a public accessor method, used in object-oriented programming, which returns the value associated with a private member of a class.

Why is the getter called so many times by the rendered attribute?

Related to a previous example, i tried to monitor my get/set methods on the server (when they are called, …

jsf jsf-2 facelets getter
Using @property decorator on dicts

I'm trying to use Python's @property decorator on a dict in a class. The idea is that I want a …

python properties setter dictionary getter
Implement getters and setters in header file

I have a simple question, is it a good practise to implement getters and setters in the header file, like …

c++ setter getter
JS getters and setters inside a class?

I'd like to create a class in JS that uses native getters and setters. I know I can create getters/…

javascript setter getter getter-setter
ES6: How to access a static getter from an instance

How can i access a static getter from an instance of the class that implements that getter? for example, i …

javascript class static ecmascript-6 getter
Default field value with @Builder or @Getter annotation in Lombok

I'm using Lombok @Builder annotation, but I'd like some of the String fields to be optional and default to "" to …

java getter builder lombok
Public property VS Private property with getter?

This question has puzzled me for a while. A public property that can be accessed directly or a private property …

java properties private public getter
Cross-browser Getter and Setter

This works in modern Chrome/Firefox/Opera but fails in IE8. Haven't tried it in IE9. How can I make …

javascript internet-explorer cross-browser getter getter-setter
unexpected return value when computing average?

I am having trouble being able to return the value of the "average" variable in my getter method. I keep …

java getter getter-setter bluej
JavaScript getter support in IE8

Check out this code. This is a very simple JavaScript object which is implemented using Module Pattern (and you can …

javascript internet-explorer-8 setter getter javascript-objects