josh.kovach
05/06/2016, 9:08 PMoverride val myProperty: MyPropertyClass; get() = super<A>.myProperty
yole
05/06/2016, 9:10 PMkix
05/06/2016, 10:22 PMdh44t
05/06/2016, 10:22 PMdh44t
05/06/2016, 10:23 PMdh44t
05/06/2016, 10:23 PMkix
05/06/2016, 10:24 PMkix
05/06/2016, 10:24 PMgroostav
05/06/2016, 10:24 PMval eventBus = google.guava.EventBus()
val event = generateEventIfDomainLogic();
//return type from generateIfDomainLogic is an Optional<Event> _not_ an Event
<http://eventBus.post|eventBus.post>(event)
as you can probably tell by reading that, what I really wanted was
<http://eventBus.post|eventBus.post>(event.get())
//or maybe
event.ifPresent { <http://eventBus.post|eventBus.post>(it) }
groostav
05/06/2016, 10:25 PMObject o
or Any o
or varags Object o
signature, it suggest, by an underline, that you give it an explicit type on definition?groostav
05/06/2016, 10:27 PMCopy codeval ~event~ = generateEventIfDomainLogic()
'event' is consumed without regard to its type, for safety its best to specify the type explicitly,+alt
to explicitly makeenter
Optional<Event>
Copy code<http://eventBus.post|eventBus.post>(event):
groostav
05/06/2016, 10:30 PMAny
and not Any?
sreich
05/06/2016, 10:42 PMsreich
05/06/2016, 10:42 PMgroostav
05/06/2016, 10:43 PMgroostav
05/06/2016, 10:43 PMsreich
05/06/2016, 10:43 PMsreich
05/06/2016, 10:44 PMgroostav
05/06/2016, 10:44 PMgroostav
05/06/2016, 10:44 PMfun doSomething(input : Any?){}
as a signature?groostav
05/06/2016, 10:45 PMgroostav
05/06/2016, 10:45 PMgroostav
05/06/2016, 10:45 PMFuture
and Option
and Eiether
groostav
05/06/2016, 10:45 PMsreich
05/06/2016, 10:49 PMsreich
05/06/2016, 10:49 PMkix
05/07/2016, 9:53 AMcbruegg
05/07/2016, 10:33 AMsreich
05/07/2016, 10:50 AMsreich
05/07/2016, 10:51 AM