This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

compare two javabean objects  RSS feed

 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have two javabean objects are i.e Jbean1 and Jbean2.
Again Jbean1 is the wrapper for set of javabeans, just like Jbean2 also.
i.e Jbean1 and Jbean2 each holds the set of javabeans.
Now i want to compare Jbean1 and Jbean2, it should be generic regardless of the bean properteis.
in future properties for the particuler javabean can change.

can anybody help me in this problem?

thanks in advance.

Thanks,
sandya.
 
Adam Schaible
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've left out too many details to give you a difinitive answer. What are you attempting to compare them for? Equality? List order? Object Identity?
 
T sandya
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am trying to check the data inside the two objects(Jbean1 and Jbean2) are equal or not?

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!