@Override public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj == null)   return false;
  if (getClass() != obj.getClass())   return false;
  AttachmentPoint other=(AttachmentPoint)obj;
  if (port != other.port)   return false;
  if (sw != other.sw)   return false;
  return true;
}

@ Override public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( getClass ( ) != obj . getClass ( ) ) return false ; AttachmentPoint other = ( AttachmentPoint ) obj ; if ( port != other . port ) return false ; if ( sw != other . sw ) return false ; return true ; }
compares only the switch and port
