Skip to content

PyJType for java.util.Map now extends collections.abc.Mapping#469

Merged
bsteffensmeier merged 1 commit intoninia:dev_4.2from
bsteffensmeier:maps-mapping
Apr 30, 2023
Merged

PyJType for java.util.Map now extends collections.abc.Mapping#469
bsteffensmeier merged 1 commit intoninia:dev_4.2from
bsteffensmeier:maps-mapping

Conversation

@bsteffensmeier
Copy link
Member

This allows Java maps to be used in python anywhere a python mapping is expected. Before this change java Maps are missing functionality such as item(), keys(), and values() which are now automatically added by extending collections.abc.Mapping.

This allows Java maps to be used in python anywhere a python mapping
is expected. Before this change java Maps are missing functionality
such as item(), keys(), and values() which are now automatically
added by extending collections.abc.Mapping.
Copy link
Member

@ndjensen ndjensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants