private boolean matchAtom(ContentType acceptedContentType){
  String atomType=getAttribute("type");
  String acceptedAtomType=acceptedContentType.getAttribute("type");
  return atomType == null || acceptedAtomType == null || atomType.equals(acceptedAtomType);
}

private boolean matchAtom ( ContentType acceptedContentType ) { String atomType = getAttribute ( "type" ) ; String acceptedAtomType = acceptedContentType . getAttribute ( "type" ) ; return atomType == null || acceptedAtomType == null || atomType . equals ( acceptedAtomType ) ; }
compares the optional ' type ' attribute of two content types . < p > this method accepts atom content type without the ' type ' attribute but if the types are specified , they must match .
