com.manywho.sdk.entities.run.EngineValueCollection Maven / Gradle / Ivy
package com.manywho.sdk.entities.run;
import com.manywho.sdk.entities.ValueAware;
import com.manywho.sdk.entities.run.elements.type.ObjectCollection;
import java.util.ArrayList;
import java.util.Collections;
public class EngineValueCollection extends ArrayList implements ValueAware {
public EngineValueCollection() {
}
public EngineValueCollection(EngineValue... engineValues) {
Collections.addAll(this, engineValues);
}
public String getContentValue(String name) {
if (!this.isEmpty()) {
return this.stream().filter(c -> c.getDeveloperName().equals(name)).findFirst().orElse(new EngineValue()).getContentValue();
}
return null;
}
public ObjectCollection getObjectData(String name) {
if (!this.isEmpty()) {
return this.stream().filter(o -> o.getDeveloperName().equals(name)).findFirst().orElse(new EngineValue()).getObjectData();
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy