Two blobs are considered equal in terms of {@link Object#equals(Object)}if they contain the same sequences of bytes. Implementations can optimize the equality checks by using strong hash codes or other similar means as long as they comply with the above definition of equality.
Due to their nature blobs should not be used as keys in hash tables. To highlight that and to ensure semantic correctness of the equality contract across different blob implementations, the {@link #hashCode()}method of all blob instances should return zero.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|