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

liqp.nodes.AtomNode Maven / Gradle / Ivy

package liqp.nodes;

import java.util.Map;

public class AtomNode implements LNode {

    public static final AtomNode EMPTY = new AtomNode(new Object());

    private Object value;

    public AtomNode(Object value) {
        this.value = value;
    }

    public static boolean isEmpty(Object o) {
        return o == EMPTY.value;
    }

    @Override
    public Object render(Map context) {

        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy