org.tensorics.core.iterable.expressions.IterableExpressionToIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tensorics-core Show documentation
Show all versions of tensorics-core Show documentation
Tensorics is a java framework which uses a tensor as a central object. A tensor represents a set of values placed in an N-dimensional space. Wherever you are tempted to use maps of maps, a tensor might be a good choice ;-) Tensorics provides methods to create, transform and performing calculations with those tensors.
/**
* Copyright (c) 2016 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
package org.tensorics.core.iterable.expressions;
import java.util.List;
import org.tensorics.core.tree.domain.AbstractDeferredExpression;
import org.tensorics.core.tree.domain.Expression;
import org.tensorics.core.tree.domain.Node;
import com.google.common.collect.Lists;
/**
* A simple expression which contains a list of expressions of T, which can be resolved into an list of T, by resolving
* each one individually.
*
* @author kfuchsbe
* @param the type of the resolved elements
*/
public class IterableExpressionToIterable extends AbstractDeferredExpression> {
private final List> expressions;
public IterableExpressionToIterable(Iterable> expressions) {
super();
this.expressions = Lists.newArrayList(expressions);
}
@Override
public List> getChildren() {
return this.expressions;
}
}