com.carrotsearch.hppcrt.strategies.ByteHashingStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hppcrt Show documentation
Show all versions of hppcrt Show documentation
High Performance Primitive Collections Realtime
(fork of HPPC of Carrotsearch)
Fundamental data structures (maps, sets, lists, stacks, queues, heaps, sorts) generated for
combinations of object and primitive types to conserve JVM memory and speed
up execution. The Realtime fork intend of extending collections while tweaking and optimizations to remove any dynamic allocations at runtime,
and low variance execution times.
package com.carrotsearch.hppcrt.strategies;
/**
* Interface to support custom hashing strategies in Hash containers using byte
s
* keys, as replacement of the original equals() and hashCode() methods.
*
* @param
*/
@javax.annotation.Generated(date = "2015-02-27T19:21:18+0100", value = "HPPC-RT generated from: ByteHashingStrategy.java")
public interface ByteHashingStrategy
{
/**
* Compute the hash code for the specific object.
* * @param object
* @return the computed hash value.
*/
int computeHashCode(byte object);
/**
* Compares the Object o1 and o2 for equality.
* * @param o1
* @param o2
* @return true for equality.
*/
boolean equals(byte o1, byte o2);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy