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
Kotlin Pair
for rxAsyncGet
?
#1
Comments
Java 8 does not have a proper class to represent a Tuple or a Pair (although javafx has one). I could have used any of the third party libraries implementing it (like Apache Commons), but it would add an extra dependency on the project for a very silly addition. I decided to use Kotlin Pair because Kotlin is already part of the project, and it has good language support. However, I do understand your position and if it makes it any better, I can create a wrapper class called "AerospikeKeyValue" or "AerospikeResult" and return this instead. What do you think about this solution? |
I like the solution, it would make this library easier to work with.
… On Dec 17, 2016, at 6:24 AM, Jose Ignacio Acin Pozo ***@***.***> wrote:
Java 8 does not have a proper class to represent a Tuple or a Pair (although javafx has one). I could have used any of the third party libraries implementing it (like Apache Commons), but it would add an extra dependency on the project for a very silly addition.
I decided to use Kotlin Pair because Kotlin is already part of the project, and it has good language support.
However, I do understand your position and if it makes it any better, I can create a wrapper class called "AerospikeKeyValue" or "AerospikeResult".l and return this instead.
What do you think about this solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFejF5jVnwF1QGzBTD1ryleuJGCOwcwWks5rI_C0gaJpZM4LPmd5>.
|
I implemented The changes are available in version 0.3.0. |
It seems like if my java project uses
rxAsyncGet
, it has to know Kotlin'sPair
class since that's part of its return type. I don't want my java project to know anything about Kotlin, what's a good solution?The text was updated successfully, but these errors were encountered: