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

com.espertech.esper.util.NullableObject Maven / Gradle / Ivy

Go to download

Complex event processing and event series analysis component

There is a newer version: 7.1.0
Show newest version
/**************************************************************************************
 * Copyright (C) 2008 EsperTech, Inc. All rights reserved.                            *
 * http://esper.codehaus.org                                                          *
 * http://www.espertech.com                                                           *
 * ---------------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the GPL license       *
 * a copy of which has been included with this distribution in the license.txt file.  *
 **************************************************************************************/
package com.espertech.esper.util;

import java.io.Serializable;

/**
 * A generic class to hold an object that may itself be a null value versus an undefined (not existing) value.
 * 

* The presence of a reference indicates that a value exists, the absence of a reference to this object indicates * that there is no value (similar to a Pair). */ public class NullableObject implements Serializable { private static final long serialVersionUID = 4345362826746027878L; private T object; /** * Ctor. * @param object the object to contain */ public NullableObject(T object) { this.object = object; } /** * Returns the contained value. * @return contained value */ public T getObject() { return object; } /** * Sets a new contained value. * @param object value to set */ public void setObject(T object) { this.object = object; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy