All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carrotsearch.hppcrt.strategies.ByteHashingStrategy Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.7.5
Show newest version
package com.carrotsearch.hppcrt.strategies;

  
/**
 * Interface to support custom hashing strategies in Hash containers using bytes
 * 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