private boolean bothLinksHaveSameLinkStats(Link linkA,Link linkB){
  boolean bothLinksHaveSameLinkStats=true;
  if (linkA.getFreespeed() != linkB.getFreespeed()) {
    bothLinksHaveSameLinkStats=false;
  }
  if (linkA.getCapacity() != linkB.getCapacity()) {
    bothLinksHaveSameLinkStats=false;
  }
  return bothLinksHaveSameLinkStats;
}

private boolean bothLinksHaveSameLinkStats ( Link linkA , Link linkB ) { boolean bothLinksHaveSameLinkStats = true ; if ( linkA . getFreespeed ( ) != linkB . getFreespeed ( ) ) { bothLinksHaveSameLinkStats = false ; } if ( linkA . getCapacity ( ) != linkB . getCapacity ( ) ) { bothLinksHaveSameLinkStats = false ; } return bothLinksHaveSameLinkStats ; }
compare link attributes . return whether they are the same or not .
