Specifying Object for V would be the most likely use case. On Fri, Sep 9, 2011 at 1:12 PM, Paul Benedict <[email protected]> wrote: > On Fri, Sep 9, 2011 at 3:06 PM, Simone Tripodi <[email protected]> > wrote: >> Hi Paul, >> the use of that method is to automatically infer the assigned type, >> instead of writing >> >> MyPojo myPojo = (MyPojo) context.get( "myKey" ); >> >> the retrieve method allows to >> >> MyPojo myPojo = context.retrieve( "myKey" ); >> > > Hmm... The inference should be automatic unless you specified Object for type > V: > Context<String, String> properties = new ContextBase<String, String>(); > String value = properties.retrieve("myKey"); > > Paul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
