Suppose I have two classes, each of them provides
It is still OK if there is only one
If Ivy Script could supports the same as normal Java, we could do:
Should this be supported in Ivy Script? asked 29.04.2016 at 07:13 Genzer Hawker |
Hi This code here:
does not work in Java as well. The compiler says:
In java and IvyScript the following works:
If you are working with builders, we usally provide a static method to start building. E.g.:
Then you do not have to import the Builder itself. Simple use:
answered 29.04.2016 at 08:28 Reto Weiss ♦♦ Oh, i didn't pay attention to the import of the Java context. It's true. You are right! For the suggestion in your answer, yes, that's what I do to (combining builder & static factory method). However, some library and even JDK still just uses plain
(29.04.2016 at 08:43)
Genzer Hawker
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 29.04.2016 at 07:13
Seen: 1,920 times
Last updated: 29.04.2016 at 08:43