simplifying getter/setter classes

I really hate Java beans and their screenfuls of boiilerplate code. I had an idea to get rid of this that I’m calling Matrix Methods:


public class Bond {
    private double price, yield, spread;
    
    public {att} get{att}() {
        return {att(price, yield, spread)};
    }

    public {att} get{att}Bps() {
        return {att(price, yield, spread)} * 10000.0;
    }

    public {att} get{att}Percentage() {
        return {att(price, yield, spread)} * 100.0;
    }

}