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

com.alibaba.qlexpress4.runtime.Value Maven / Gradle / Ivy

package com.alibaba.qlexpress4.runtime;

import com.alibaba.qlexpress4.runtime.data.DataValue;

/**
 * Author: DQinYuan
 */
public interface Value {
    Value NULL_VALUE = new DataValue((Object)null);

    Object get();

    default Class getType() {
        Object value = get();
        if (value == null) {
            return Object.class;
        }

        return value.getClass();
    }

    default String getTypeName() {
        Class type = getType();
        if (type == null) {
            return null;
        }
        return type.getName();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy