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

com.beans.properties.SimpleLongProperty 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.LongProperty LongProperty}, holding a * variable which is accessed for writing or reading through {@link #setAsLong(long)} * and {@link #getAsLong()}. *

*

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

* * @since JavaBeans 1.0 */ public class SimpleLongProperty extends LongPropertyBase { private long mValue; public SimpleLongProperty(long initialValue) { mValue = initialValue; } /** * Initializes the property with a value of 0. */ public SimpleLongProperty() { this(0); } @Override public void setAsLong(long value) { mValue = value; } @Override public long getAsLong() { return mValue; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy