code: public int size() {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "size");
  
      /* Because the table could be 'resized' (and therefore replaced) during   */
      /* the method we get a local ref to the current one & use it throughout.  */
      Entry[] safeTable = table;
  
      long count = 0;
      Entry current;
  
      /* Go through the linked lists in the table, counting non-null entries    */
      for (int i = 0; i < safeTable.length; i++) {
        current = safeTable[i];
        while (current != null) {
          count++;
          current = current.next;
        }
      }
  
      if (count > Integer.MAX_VALUE) {
        count = Integer.MAX_VALUE;
      }
  
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "size",  (int)count);
      return (int)count;
    }
docs: Returns the number of elements in this set (its cardinality).  If this
  set contains more than <tt>Integer.MAX_VALUE</tt> elements, returns
  <tt>Integer.MAX_VALUE</tt>.
  
  @return the number of elements in this set (its cardinality).