private boolean hasOverflow(N node){
  if (node.isLeaf()) {
    return node.getNumEntries() == leafCapacity;
  }
  return node.getNumEntries() == dirCapacity;
}

private boolean hasOverflow ( N node ) { if ( node . isLeaf ( ) ) { return node . getNumEntries ( ) == leafCapacity ; } return node . getNumEntries ( ) == dirCapacity ; }
returns true if in the specified node an overflow has occurred , false otherwise .
