code: public Entry<T>[] entries() {
          @SuppressWarnings("unchecked")
          Entry<T>[] entries = new Entry[size];
          int idx = 0;
          for (Entry entry : table) {
              while (entry != null) {
                  entries[idx++] = entry;
                  entry = entry.next;
              }
          }
          return entries;
      }
docs: Returns all entries in no particular order.