{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka-stream-contrib/issues/135","repository_url":"https://api.github.com/repos/akka/akka-stream-contrib","labels_url":"https://api.github.com/repos/akka/akka-stream-contrib/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka-stream-contrib/issues/135/comments","events_url":"https://api.github.com/repos/akka/akka-stream-contrib/issues/135/events","html_url":"https://github.com/akka/akka-stream-contrib/issues/135","id":328867903,"node_id":"MDU6SXNzdWUzMjg4Njc5MDM=","number":135,"title":"replace scala.Either in PartitionWith Java API","user":{"login":"laszlovandenhoek","id":998449,"node_id":"MDQ6VXNlcjk5ODQ0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/998449?v=4","gravatar_id":"","url":"https://api.github.com/users/laszlovandenhoek","html_url":"https://github.com/laszlovandenhoek","followers_url":"https://api.github.com/users/laszlovandenhoek/followers","following_url":"https://api.github.com/users/laszlovandenhoek/following{/other_user}","gists_url":"https://api.github.com/users/laszlovandenhoek/gists{/gist_id}","starred_url":"https://api.github.com/users/laszlovandenhoek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laszlovandenhoek/subscriptions","organizations_url":"https://api.github.com/users/laszlovandenhoek/orgs","repos_url":"https://api.github.com/users/laszlovandenhoek/repos","events_url":"https://api.github.com/users/laszlovandenhoek/events{/privacy}","received_events_url":"https://api.github.com/users/laszlovandenhoek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-03T22:26:32Z","updated_at":"2018-06-04T12:42:04Z","closed_at":null,"author_association":"NONE","body":"The Java API of `PartitionWith` takes a function that yields a `scala.Either`. Constructing that from Java is cumbersome. `Either.cond` comes close but by-name laziness is not retained.\r\n\r\nI would like to replace the `Either` with something else, but what should it be?\r\n\r\n- a boolean and two `Supplier`s?\r\n- some `Either` from a Java library like [cyclops-react](https://github.com/aol/cyclops-react/blob/master/cyclops/src/main/java/cyclops/control/Either.java)?\r\n- something else?"},"comment":{"url":"https://api.github.com/repos/akka/akka-stream-contrib/issues/comments/394340869","html_url":"https://github.com/akka/akka-stream-contrib/issues/135#issuecomment-394340869","issue_url":"https://api.github.com/repos/akka/akka-stream-contrib/issues/135","id":394340869,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDM0MDg2OQ==","user":{"login":"patriknw","id":336161,"node_id":"MDQ6VXNlcjMzNjE2MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/336161?v=4","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T12:42:04Z","updated_at":"2018-06-04T12:42:04Z","author_association":"MEMBER","body":"For the Java API I'd suggest creating a custom class, `PartitionWith.Output<A, B>` with clear factory methods such as `PartitionWith.selectLeft(A element)`, `PartitionWith.selectRight(B element)`."}}
{"actor":{"display_login":"patriknw"}}