ObjectCache icon indicating copy to clipboard operation
ObjectCache copied to clipboard

public Object get ( String key, Class objectClass, Type objectType )

Open ChristopheCVB opened this issue 11 years ago • 1 comments

I don't understand the use of SoftCachedObject. I've not read the entire source but I think we can do this :

Change :

public Object get ( String key, Class objectClass, Type objectType )

by

public <T extends Object> get ( String key, Class<T> objectClass, Type objectType )

And drop SoftCachedObject ?

I tried to make the changes but I'm still using Eclipse and this seems not to be compatible with current project structure...

ChristopheCVB avatar Jun 25 '14 21:06 ChristopheCVB

Added some information on SoftCachedObject over here -- https://github.com/iainconnor/ObjectCache/pull/5#issuecomment-48966379 -- let me know if that helps it make more sense. Could possibly be solved nicer by having a unique callback as opposed to a unique object in the response of the callback.

iainconnor avatar Jul 14 '14 22:07 iainconnor