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

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

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

import com.beans.LongProperty;

import java.util.Objects;

/**
 * 

* Base for {@link LongProperty} implementations. Implements * {@link #set(Long)} and {@link #get()} as proxy calls to {@link #setAsLong(long)} * and {@link #getAsLong()} respectively. *

* * @since JavaBeans 1.0 */ public abstract class LongPropertyBase implements LongProperty { @Override public void set(Long value) { setAsLong(Objects.requireNonNull(value, "null value")); } @Override public Long get() { return getAsLong(); } @Override public String toString() { return String.format("LongProperty [value=%d]", getAsLong()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy