Example usage for java.lang Byte hashCode

List of usage examples for java.lang Byte hashCode

Introduction

In this page you can find the example usage for java.lang Byte hashCode.

Prototype

public static int hashCode(byte value) 

Source Link

Document

Returns a hash code for a byte value; compatible with Byte.hashCode() .

Usage

From source file:Main.java

public static void main(String... args) {
    byte b = 2;
    System.out.println(Byte.hashCode(b));
}

From source file:net.mintern.primitive.pair.BytePair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code/* www.ja v  a  2 s  .co m*/
 * @see Byte#hashCode(byte)
 */
@Override
public int hashCode() {
    return Byte.hashCode(getLeft()) ^ Byte.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.ByteIntPair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code/*from ww w.j a va2 s .co m*/
 * @see Byte#hashCode(byte)
 * @see Integer#hashCode(int)
 */
@Override
public int hashCode() {
    return Byte.hashCode(getLeft()) ^ Integer.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.ByteLongPair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code/*from  www  .j  a v  a 2 s . c  o  m*/
 * @see Byte#hashCode(byte)
 * @see Long#hashCode(long)
 */
@Override
public int hashCode() {
    return Byte.hashCode(getLeft()) ^ Long.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.LongBytePair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code//w  w  w.  jav  a 2s. c  o m
 * @see Long#hashCode(long)
 * @see Byte#hashCode(byte)
 */
@Override
public int hashCode() {
    return Long.hashCode(getLeft()) ^ Byte.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.IntBytePair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code//from  w  w w  .j a va2  s .c  om
 * @see Integer#hashCode(int)
 * @see Byte#hashCode(byte)
 */
@Override
public int hashCode() {
    return Integer.hashCode(getLeft()) ^ Byte.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.FloatBytePair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code//from   w  w  w  .  j a va  2  s  .c o  m
 * @see Float#hashCode(float)
 * @see Byte#hashCode(byte)
 */
@Override
public int hashCode() {
    return Float.hashCode(getLeft()) ^ Byte.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.ByteBooleanPair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code//from w w w. j  a v  a 2 s.  co m
 * @see Byte#hashCode(byte)
 * @see Boolean#hashCode(boolean)
 */
@Override
public int hashCode() {
    return Byte.hashCode(getLeft()) ^ Boolean.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.CharBytePair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code//ww  w . jav a 2  s  .c o m
 * @see Character#hashCode(char)
 * @see Byte#hashCode(byte)
 */
@Override
public int hashCode() {
    return Character.hashCode(getLeft()) ^ Byte.hashCode(getRight());
}

From source file:net.mintern.primitive.pair.DoubleBytePair.java

/**
 * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}.
 *
 * @return the hash code/* www.j a  v a2s  . co m*/
 * @see Double#hashCode(double)
 * @see Byte#hashCode(byte)
 */
@Override
public int hashCode() {
    return Double.hashCode(getLeft()) ^ Byte.hashCode(getRight());
}