com.heliorm.impl.WherePart Maven / Gradle / Ivy
The newest version!
package com.heliorm.impl;
import com.heliorm.def.Continuation;
import com.heliorm.def.Where;
import java.util.LinkedList;
import java.util.List;
public final class WherePart implements Where {
private final ExpressionPart expression;
private final List> continuations = new LinkedList<>();
public WherePart(Continuation expr) {
this.expression = (ExpressionPart) expr;
}
public ExpressionPart getExpression() {
return expression;
}
public List> getContinuations() {
return continuations;
}
@Override
public Where and(Continuation cont) {
continuations.add(new ExpressionContinuationPart<>(ExpressionContinuationPart.Type.AND, cont));
return this;
}
@Override
public Where or(Continuation cont) {
continuations.add(new ExpressionContinuationPart<>(ExpressionContinuationPart.Type.OR, cont));
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy