Hello Naresh,
If i understood you, i have two possible solutions the first it's using a visitor
pattern to process the objects according to their type. Sometimes i don't like much this pattern personally and instead just for decoupling. I use a map<Class<?>,Interface>. With that map you could pass the class of the object and obtain a custom behavior according to it.
I hope this could help you,