Codota Logo
ArrayHelper.hash
Code IndexAdd Codota to your IDE (free)

How to use
hash
method
in
org.hibernate.internal.util.collections.ArrayHelper

Best Java code snippets using org.hibernate.internal.util.collections.ArrayHelper.hash (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

/**
 * calculate the array hash (only the first level)
 */
public static int hash(char[] array) {
  int seed = SEED;
  for ( char anArray : array ) {
    seed = hash( seed, anArray );
  }
  return seed;
}
origin: hibernate/hibernate-orm

/**
 * calculate the array hash (only the first level)
 */
public static int hash(byte[] bytes) {
  int seed = SEED;
  for ( byte aByte : bytes ) {
    seed = hash( seed, aByte );
  }
  return seed;
}
origin: hibernate/hibernate-orm

/**
 * calculate the array hash (only the first level)
 */
public static int hash(Object[] array) {
  int seed = SEED;
  for ( Object anArray : array ) {
    seed = hash( seed, anArray == null ? 0 : anArray.hashCode() );
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * calculate the array hash (only the first level)
 */
public static int hash(byte[] bytes) {
  int length = bytes.length;
  int seed = SEED;
  for (int index = 0 ; index < length ; index++) {
    seed = hash( seed, bytes[index] ) ;
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * calculate the array hash (only the first level)
 */
public static int hash(byte[] bytes) {
  int length = bytes.length;
  int seed = SEED;
  for (int index = 0 ; index < length ; index++) {
    seed = hash( seed, bytes[index] ) ;
  }
  return seed;
}
origin: org.hibernate.orm/hibernate-core

/**
 * calculate the array hash (only the first level)
 */
public static int hash(byte[] bytes) {
  int seed = SEED;
  for ( byte aByte : bytes ) {
    seed = hash( seed, aByte );
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public int getHashCode(Object x, SessionFactoryImplementor factory) {
  if ( x instanceof Character[] ) {
    Object[] o = (Object[]) x;
    return ArrayHelper.hash( o );
  }
  else {
    byte[] c = (byte[]) x;
    return ArrayHelper.hash( c );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * calculate the array hash (only the first level)
 */
public static int hash(char[] array) {
  int length = array.length;
  int seed = SEED;
  for (int index = 0 ; index < length ; index++) {
    seed = hash( seed, array[index] ) ;
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate

public int getHashCode(Object x, SessionFactoryImplementor factory) {
  if ( x instanceof Character[] ) {
    Object[] o = (Object[]) x;
    return ArrayHelper.hash( o );
  }
  else {
    byte[] c = (byte[]) x;
    return ArrayHelper.hash( c );
  }
}
origin: org.hibernate.orm/hibernate-core

/**
 * calculate the array hash (only the first level)
 */
public static int hash(char[] array) {
  int seed = SEED;
  for ( char anArray : array ) {
    seed = hash( seed, anArray );
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * calculate the array hash (only the first level)
 */
public static int hash(char[] array) {
  int length = array.length;
  int seed = SEED;
  for (int index = 0 ; index < length ; index++) {
    seed = hash( seed, array[index] ) ;
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * calculate the array hash (only the first level)
 */
public static int hash(Object[] array) {
  int length = array.length;
  int seed = SEED;
  for (int index = 0 ; index < length ; index++) {
    seed = hash( seed, array[index] == null ? 0 : array[index].hashCode() );
  }
  return seed;
}
origin: org.hibernate.orm/hibernate-core

/**
 * calculate the array hash (only the first level)
 */
public static int hash(Object[] array) {
  int seed = SEED;
  for ( Object anArray : array ) {
    seed = hash( seed, anArray == null ? 0 : anArray.hashCode() );
  }
  return seed;
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * calculate the array hash (only the first level)
 */
public static int hash(Object[] array) {
  int length = array.length;
  int seed = SEED;
  for (int index = 0 ; index < length ; index++) {
    seed = hash( seed, array[index] == null ? 0 : array[index].hashCode() );
  }
  return seed;
}
org.hibernate.internal.util.collectionsArrayHelperhash

Javadoc

calculate the array hash (only the first level)

Popular methods of ArrayHelper

  • fillArray
  • countTrue
  • isAllFalse
  • join
  • getBatchSizes
  • getNextBatchSize
  • indexOf
  • toIntArray
  • toString
  • toStringArray
  • addAll
  • countNonNull
  • addAll,
  • countNonNull,
  • isAllNegative,
  • slice,
  • to2DIntArray,
  • to2DStringArray,
  • toBooleanArray,
  • toList,
  • toTypeArray

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now