Package com.espertech.esper.view

Source Code of com.espertech.esper.view.ViewableDefaultImpl

/*
* *************************************************************************************
*  Copyright (C) 2008 EsperTech, Inc. All rights reserved.                            *
*  http://esper.codehaus.org                                                          *
*  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.view;

import com.espertech.esper.client.EventType;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.collection.ArrayEventIterator;

import java.util.List;
import java.util.Iterator;

public class ViewableDefaultImpl implements Viewable
{
    private final EventType eventType;

    public ViewableDefaultImpl(EventType eventType)
    {
        this.eventType = eventType;
    }

    public View addView(View view)
    {
        return null;
    }

    public List<View> getViews()
    {
        return null;
    }

    public boolean removeView(View view)
    {
        return false;
    }

    public void removeAllViews()
    {
    }

    public boolean hasViews()
    {
        return false;
    }

    public EventType getEventType()
    {
        return eventType;
    }

    public Iterator<EventBean> iterator()
    {
        return new ArrayEventIterator(null);
    }
}
TOP

Related Classes of com.espertech.esper.view.ViewableDefaultImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.