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

org.vertexium.cypher.ast.model.CypherExpression Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.cypher.ast.model;

import com.google.common.collect.Lists;

import java.util.stream.Collectors;

import static org.vertexium.util.StreamUtils.stream;

public abstract class CypherExpression extends CypherAstBase {
    public static String toString(Iterable expressions) {
        return stream(expressions)
            .map(e -> e == null ? "null" : e)
            .map(Object::toString)
            .collect(Collectors.joining(", "));
    }

    public static Object toString(CypherAstBase[] expressions) {
        return toString(Lists.newArrayList(expressions));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy