Examples of BmiState


Examples of net.sf.laja.example.person.state.BmiState

    protected HeightState height;

    private boolean _encapsulated = false;

    public BmiState bmiState() {
        return new BmiState() {
            public int getHeightInCentimeters() { return PersonStateImpl.this.height.getHeightInCentimeters(); }
            public void setHeightInCentimeters(int heightInCentimeters) { PersonStateImpl.this.height.setHeightInCentimeters(heightInCentimeters); }

            public int getWeightInKilograms() { return PersonStateImpl.this.weightInKilograms; }
            public void setWeightInKilograms(int weightInKilograms) { PersonStateImpl.this.setWeightInKilograms(weightInKilograms); }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.