Skip to content

Commit

Permalink
added javadoc clarifying hashCode() requirements (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
hg-ms authored Sep 12, 2024
1 parent 0c5c834 commit 40ca4ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
* This map implementation internally uses {@link Lazy} references internally,
* to enable automatic partial loading of it's content.
* <br><br>
* <b>
* This Map implementation requires the key objects to implement the hashCode()
* in a manner that guarantees consistent, identical hash values from one execution of an
* application to another execution of the same application.
* </b>
* <br><br>
* Internally the key value pairs are kept in segments that are controlled by
* {@link Lazy} references. The maxSegmentSize define the maximal desired number of
* key / value pairs to be kept in a single segment. When loading data all elements of a segment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@

/**
* Implementation of the {@code Set} interface, backed by a {@link LazyHashMap}
* <br><br>
* <b>
* This Set implementation requires the objects that are added to the set to implement the hashCode()
* in a manner that guarantees consistent, identical hash values from one execution of an
* application to another execution of the same application.
* </b>
*
* @param <T> Type of contained elements
*/
Expand Down

0 comments on commit 40ca4ba

Please sign in to comment.