com.neotys.neoload.model.repository.IfThenElse Maven / Gradle / Ivy
package com.neotys.neoload.model.repository;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.neotys.neoload.model.core.Element;
import org.immutables.value.Value;
import java.util.stream.Stream;
/**
* @deprecated As of v3, replaced by an associated class from v3 version.
*/
@Value.Immutable
@JsonDeserialize(as = ImmutableIfThenElse.class)
@Deprecated
public interface IfThenElse extends Element {
Conditions getConditions();
ContainerForMulti getThen();
ContainerForMulti getElse();
@Override
default Stream flattened() {
return Stream.of(getThen(), getElse()).flatMap(ContainerForMulti::flattened);
}
}