All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.beans.properties.SimpleIntProperty Maven / Gradle / Ivy

There is a newer version: 1.7.0
Show newest version
package com.beans.properties;

/**
 * 

* A simple implementation of {@link com.beans.IntProperty IntProperty}, holding a * variable which is accessed for writing or reading through {@link #setAsInt(int)} * and {@link #getAsInt()}. *

*

* A boxed version of the access interface for writing and reading is available * using {@link #set(Integer)} and {@link #get()}, which are basically proxies * for the primitive interface. *

* * @since JavaBeans 1.0 */ public class SimpleIntProperty extends IntPropertyBase { private int mValue; public SimpleIntProperty(int initialValue) { mValue = initialValue; } /** * Initializes the property with a value of 0. */ public SimpleIntProperty() { this(0); } @Override public void setAsInt(int value) { mValue = value; } @Override public int getAsInt() { return mValue; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy