public boolean empty(){
  return text.length() == 0 && links.size() == 0 && templates.size() == 0 && tags.size() == 0 && mathSpans.size() == 0;
}

public boolean empty ( ) { return text . length ( ) == 0 && links . size ( ) == 0 && templates . size ( ) == 0 && tags . size ( ) == 0 && mathSpans . size ( ) == 0 ; }
returns true if there is no content in this contentelement .
