-Fixed: A couple bugs that were found during javadoc generation. Next loop of javadoc comes later right now i want to add splititerators and streams
23 lines
717 B
Plaintext
23 lines
717 B
Plaintext
package speiger.src.collections.PACKAGE.utils;
|
|
|
|
/**
|
|
* A Type Specific Strategy class that allows to give control hashcode generation and equals comparason for maps
|
|
* @Type(T)
|
|
*/
|
|
public interface STRATEGY KEY_GENERIC_TYPE
|
|
{
|
|
/**
|
|
* Type Specific HashCode function
|
|
* @param o the element that the hashcode is requested for (if object may be null)
|
|
* @return hashcode for the given entry
|
|
*/
|
|
public int hashCode(KEY_TYPE o);
|
|
|
|
/**
|
|
* Type Specific Equals function
|
|
* @param key the first element that should be compared with
|
|
* @param value the second element that should be compared with (if object may be null)
|
|
* @return if the elements match
|
|
*/
|
|
public boolean equals(KEY_TYPE key, KEY_TYPE value);
|
|
} |