1. You have complete implementations of and and .
2. Handling for all cases whether you're handling null values or say when a certain kind of item should or shouldn't be refreshed along with returning appropriate results.
3. Avoid object reference checks as they might be different. Only use fine item comparisons - override and write your own implementation.
4. Make sure to always use DiffUtil for any kind of list updations.
I am trying to pass few lists of values into a fragment through Bundle. However I have done the same before without any problems. It looks so silly - I can't figure out why the size of lists are shown 0 when we retrieve the bundle in fragment.
The part where I am putting data into Bundle. The size of `countriesFromBundle` is more than 0.
And this is where I am getting the empty lists, like for ex. the size of `countriesList` is 0.
I am removing and adding same list items as required and updating the view. I know I should use during adding new elements. When I have less list items on, it gets updated but when there are more items, no change occurs. Can't understand this. Help would be appreciated!
First, I am new to these concepts so I am really confused between the above two.
Second, take a look at the part where I've already instantiated OkHttpClient and here I have to use the setConnectedTimeout and setReadTimeout methods. So what do I do next ? Any help will be greatly appreciated.
Yes sure, an object is created, referenced to null but in the LinkedList class, it is given so what actually happens here ? Does the object takes all its values of next node and store it ? Where does the previous node's data go into, is it overwritten - mean how is memory allocation taking place ? Sorry if I am not able to clearly present my actual query here.
I am a beginner, so feel free to point out any mistakes or misconceptions.
I have a generic class Node, which i implemented in an other class - LinkedList. My question is - what does the line marked in the Node class part represent exactly. Thanks in advance.
I have not been successful in running this code, it is showing NPE at the part where i add elements to a HashMap. I am also confused about how to generate the Random ID's during runtime. It is my beginner level so please feel free to sort out almost anything. Thanks.
Thank you very much.
I got what are trying to explain , so i guess i may also use
Sorry for the mistakes i did by messing up the line numbers.
And thanks for that List suggestion too. I will certainly change that.