-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using getObject() method #25
Comments
Hello, i had the same issue, after a couple of tries i found the solution. tinyDB.getObject("user",UserResponse.class); As i could understand, this method will return the object and this parameter will cast the object it returns to the object type u pass to it. I hope I have helped. |
It's not what you are saying. 2nd argument is nothing but default argument. Please pass an object of the same class with some default value. It'll work. |
Simply update the method from `public T getObject(String key, Class classOfT){
to
|
how to use ..
public Object getObject(String key, Class<?> classOfT){
this method.
The text was updated successfully, but these errors were encountered: