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

com.byoutline.eventcallback.internal.actions.ResultEvents Maven / Gradle / Ivy

The newest version!
package com.byoutline.eventcallback.internal.actions;

import com.byoutline.eventcallback.EventCallback;
import com.byoutline.eventcallback.ResponseEvent;
import org.apache.commons.lang3.Validate;

import java.util.ArrayList;
import java.util.List;

/**
 * Stores events that can be invoked during {@link EventCallback} onSuccess
 * and onError steps.
 *
 * @author Sebastian Kacprzak 
 */
public class ResultEvents extends CreateEvents {
    public final List> resultEvents;

    public ResultEvents() {
        this.resultEvents = new ArrayList>();
    }

    @Override
    void validate() {
        super.validate();
        Validate.noNullElements(resultEvents);
    }

    @Override
    public String toString() {
        return "ResultEvents{" + "resultEvents=" + resultEvents + '}' + super.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy