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

com.puresoltechnologies.commons.domain.Value Maven / Gradle / Ivy

The newest version!
package com.puresoltechnologies.commons.domain;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;

/**
 * 

* This interface represents a value. A value always consists of two parts: *

*
    *
  1. A value which represents a measurement or state.
  2. *
  3. A parameter of type {@link Parameter} which specifies which kind of value * it is.
  4. *
* * @author Rick-Rainer Ludwig * * @param * is the type of the value to be stored. */ @JsonTypeInfo(use = Id.CLASS, include = As.PROPERTY, property = "class") public interface Value extends Serializable { /** * This method returns the stored value. * * @return An object of type T is returned. */ public T getValue(); /** * This method returns the corresponding parameter. * * @return An object of type {@link Parameter} is returned. */ public Parameter getParameter(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy