Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ default T extensions(Map<String, Object> extensions) {
* @param name
* the key used to access the extension object. Always prefixed by "x-".
* @return {@code true} if an extension with the given name is present, otherwise {@code false}
* @since 4.1
*/
default boolean hasExtension(String name) {
Map<String, Object> map = getExtensions();
Expand All @@ -97,6 +98,7 @@ default boolean hasExtension(String name) {
* @param name
* the key used to access the extension object. Always prefixed by "x-".
* @return the corresponding extension object, or {@code null} if no extension with the given name is present
* @since 4.1
*/
default Object getExtension(String name) {
Map<String, Object> map = getExtensions();
Expand Down