Yu Kobayashi
Yu Kobayashi
Sorry, as I used yukoba:master branch, and because of the GitHub system, two patches are merged into one pull request. Therefore, I changed this pull request title.
I'm not the owner of this project, but you should write this problem to Cairo ML. Here is a wrong place. By the way, answering to your question, you should...
What I want is this. https://github.com/yukoba/GreenDaoUpgradeHelper/commit/431d00eacdb1a8e571074acc7256fac360ab95ac
I think the better implementation way for this is to change the return type of `Collection.collect(Closure)` from `List` to `Collection`, and use `createSimilarCollection(self)` instead of `new ArrayList(self.size())`. You don't need...
One option for the upper compatibility problem is to use a new method name `map()` and implement `Iterable.map(Closure)` like this. ``` public static Collection map(Iterable self, @ClosureParams(FirstParam.FirstGenericType.class) Closure transform) {...
> return type that we should use createSimilarCollection instead of defaultSet. Note that all of this is not ideal as it will only create a similar collection for those few...
I will write https://en.wikibooks.org/wiki/Haskell/Understanding_monads/List more simply. If a collection library implements these two methods, those collection classes can handle in the same way. 1."Haskell return" == "Functional Groovy unit()" ```...
One possible solution might be this. First create a marker interface. ``` public interface GroovyCollection extends Collection {} ``` `GroovyCollection` must implement this static method and must have a public...
I made a test implementation of above. See https://github.com/yukoba/groovy-core/commit/45402abdbd88b933df393d65e393cf8261cca9a9 . Normal, `@TypeChecked` and `@CompileStatic` work properly, but IntelliJ IDEA 14 EAP shows errors at `@TypeChecked` and `@CompileStatic`.
Sorry, `GroovyCollection.createSimilar()` does not need to be a static method. I updated here https://github.com/yukoba/groovy-core/commit/745e42a722747b6585ac252fd0aa1791e89890f2 .