congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ArrayHelper.hash
Code IndexAdd Tabnine 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)

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

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.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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Path (java.nio.file)
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now