I would like to know is there any build in or third party collection class(to perform all operations in the collection interface) which can store the inserted items into the temp file if it exceeds the buffer size(e.g: 500). For e.g, if I am inserting 501 item into the collection class then it has to go into the file instead of having into the memory. While deleting the element in the memory, the element in the file has to be filled in the memory till it reaches the buffer size.
I don't think there is such a collection. Like Campbell said, you can create it yourself. Keep in mind that iterating may be harder than usual since you need to check the file as well. You will also run into synchronization problems if you try to read from the file and write to it at the same time.