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

org.yamcs.yarch.ConstantValueCompiledExpression Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.yarch;

/**
 * this is no compiled expression at all, it just returns the same value
 * 
 * @author nm
 *
 */
public class ConstantValueCompiledExpression implements CompiledExpression {
    Object value;
    ColumnDefinition cdef;

    public ConstantValueCompiledExpression(Object value2, ColumnDefinition cdef) {
        this.value = value2;
        this.cdef = cdef;
    }

    @Override
    public Object getValue(Tuple tuple) {
        return value;
    }

    @Override
    public ColumnDefinition getDefinition() {
        return cdef;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy