Skip to content

DATAMONGO-1288 - Add conversion for AtomicInteger & AtomicLong. #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

We now convert AtomicInteger and AtomicLong to the required Number target type by calling get() followed by the actual conversion. This allows to directly use these types eg. as part of an Update.

new Update().set("intValue", new AtomicInteger(10));

Depends on DATAMONGO-1302 (PR #330).

… AtomicInteger.

Prepare issue branch.
- Alter version for issue branch build.
- Include DATAMONGO-1302 (PR#330) for adding ConverterFactory to CustomConversions.
We now convert AtomicInteger and AtomicLong to the required Number target type by calling get() followed by the actual conversion. This allows to directly use these types eg. as part of an Update.

new Update().set("intValue", new AtomicInteger(10));
odrotbohm pushed a commit that referenced this pull request Feb 11, 2016
We now convert AtomicInteger and AtomicLong to the required Number target type by calling get() followed by the actual conversion. This allows to directly use these types e.g. as part of an Update: new Update().set("intValue", new AtomicInteger(10));

Original pull request: #331.
odrotbohm added a commit that referenced this pull request Feb 11, 2016
Some JavaDoc here and there. Moved converter factory registration into MongoConverters.getConvertersToRegister() for consistency with others.

Original pull request: #331.
@odrotbohm odrotbohm closed this Feb 11, 2016
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1288 branch February 11, 2016 13:09
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