public int size() {
    return generalErrors.size() + fieldErrors.values().stream().mapToInt(List::size).sum();
  }
public int size ( ) { return generalErrors . size ( ) + fieldErrors . values ( ) . stream ( ) . mapToInt ( List :: size ) . sum ( ) ; }
@return the total count of all errors. All field errors and general errors