com.espertech.esper.epl.spec.ContextDetailNested Maven / Gradle / Ivy
/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.epl.spec;
import com.espertech.esper.filter.FilterSpecCompiled;
import java.util.ArrayList;
import java.util.List;
public class ContextDetailNested implements ContextDetail {
private static final long serialVersionUID = -6809635026804573109L;
private final List contexts;
public ContextDetailNested(List contexts) {
this.contexts = contexts;
}
public List getContexts() {
return contexts;
}
public List getContextDetailFilterSpecs() {
List filterSpecs = new ArrayList(2);
for (CreateContextDesc desc : contexts) {
filterSpecs.addAll(desc.getContextDetail().getContextDetailFilterSpecs());
}
return filterSpecs;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy