Bookmark Topic Watch Topic
  • New Topic

Need help: Best possible result after comparing objects  RSS feed

 
Pupun Moh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have a requirement in which a dynamically created bean object has to compared on a ArrayList of similar bean objects to find the best possible match.

Suppose the object which is dynamically created bean object is having values as dynBeanObject{null,null,A,B,C}, where the first two fields have been intentionally set to null.
Now on comparing with the ArrayList of similar objects, results should be an ArrayList of all the objects which have {---,---,A,B,C} as the pattern. Means all the objects which have A,B,C will be added to the new list.

Please guide me to create a filtered array list to which I supply the dynBeanObject and the ArrayList. The return of the method will be an ArrayList of filtered objects.

Regards,
Pupun.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Do not post the same question in multiple forums - carefully choose one forum. Continue in your other topic.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!