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

org.ssssssss.script.runtime.linq.LinQJoinValue Maven / Gradle / Ivy

The newest version!
package org.ssssssss.script.runtime.linq;

import org.ssssssss.script.runtime.function.MagicScriptLambdaFunction;

import java.util.List;

public class LinQJoinValue {

	private final MagicScriptLambdaFunction condition;

	private final List target;

	private final boolean isLeftJoin;

	private int aliasIndex = -1;

	public LinQJoinValue(MagicScriptLambdaFunction condition, List objects, boolean isLeftJoin, int aliasIndex) {
		this.condition = condition;
		this.target = objects;
		this.isLeftJoin = isLeftJoin;
		this.aliasIndex = aliasIndex;
	}

	public MagicScriptLambdaFunction getCondition() {
		return condition;
	}

	public int size(){
		return target.size();
	}

	public List getTarget() {
		return target;
	}

	public boolean isLeftJoin() {
		return isLeftJoin;
	}

	public int getAliasIndex() {
		return aliasIndex;
	}
}