A sensible definition of #isEmpty in terms of the iterator method of #entrySet. If you override #entrySet, you may wish to override #isEmpty to forward to this implementation. @since 7.0
()
| 296 | |
| 297 | |
| 298 | protected boolean standardIsEmpty() { |
| 299 | return !entrySet().iterator().hasNext(); |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * A sensible definition of {@link #equals} in terms of the {@code equals} |