Added missing nullable attribute in X0 section manifest
This commit is contained in:
parent
90e73d2d09
commit
68342e19a3
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue