Added missing nullable attribute in X0 section manifest

This commit is contained in:
Willem Cazander 2024-12-27 20:54:01 +01:00
parent 90e73d2d09
commit 68342e19a3

View file

@ -77,6 +77,14 @@ public interface WarpManifestX0Section<T, H extends WarpManifestX0HeaderField<T,
return Optional.of(attr.get().getBody()); return Optional.of(attr.get().getBody());
} }
default T getAttributeBodyNullable(T attributeName) {
return getAttributeBodyNullable(attributeName, null);
}
default T getAttributeBodyNullable(T attributeName, T defaultValue) {
return getAttributeBody(attributeName).orElse(defaultValue);
}
List<T> getRemarks(); List<T> getRemarks();
S withRemark(T remark); S withRemark(T remark);