network.oxalis.as4.common.As4MessageProperties Maven / Gradle / Ivy
package network.oxalis.as4.common;
import java.util.ArrayList;
public class As4MessageProperties extends ArrayList {
public boolean isMissing(String name) {
return stream().noneMatch(p -> name.equals(p.getName()));
}
public String getValueByName(String name) {
return stream().filter(p -> name.equals(p.getName())).findAny().map(As4MessageProperty::getValue).orElse(null);
}
}