Hi
I have a list of beans. I now want to retrieve the properties from the bean and then compare the properties. Can anyone please help me in this .
public class WireBean {
private
String sourceName;
private String targetName;
public String getSourceName() {
return sourceName;
}
public void setSourceName(String sourceName) {
this.sourceName = sourceName;
}
public String getTargetName() {
return targetName;
}
public void setTargetName(String targetName) {
this.targetName = targetName;
}
Based on the different values set in the properties, i have put the bean in a list. (
list.add(wireBean))
Now i want to iterate through this list and i want to check the properties of sourceName in different beans and if they are equal, i want to put them in a Map.
Can anyone , please help !
}