Tabnine Logo
ArrayHelper.indexOf
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: hibernate/hibernate-orm

public static boolean contains(Object[] array, Object object) {
  return indexOf( array, object ) > -1;
}
origin: hibernate/hibernate-orm

private int getSubclassPropertyIndex(String propertyName) {
  return ArrayHelper.indexOf( subclassPropertyNameClosure, propertyName );
}
origin: hibernate/hibernate-orm

/**
 * Get the config value as a {@link String}.
 *
 * @param name The config setting name.
 * @param values The map of config parameters.
 * @param defaultValue The default value to use if not found.
 * @param otherSupportedValues List of other supported values. Does not need to contain the default one.
 *
 * @return The value.
 *
 * @throws ConfigurationException Unsupported value provided.
 *
 */
public static String getString(String name, Map values, String defaultValue, String ... otherSupportedValues) {
  final String value = getString( name, values, defaultValue );
  if ( !defaultValue.equals( value ) && ArrayHelper.indexOf( otherSupportedValues, value ) == -1 ) {
    throw new ConfigurationException(
        "Unsupported configuration [name=" + name + ", value=" + value + "]. " +
            "Choose value between: '" + defaultValue + "', '" + String.join( "', '", otherSupportedValues ) + "'."
    );
  }
  return value;
}
origin: hibernate/hibernate-orm

int index = ArrayHelper.indexOf(
    getSubclassPropertyNameClosure(),
    rootPropertyName
origin: org.hibernate/com.springsource.org.hibernate.core

private int getSubclassPropertyIndex(String propertyName) {
  return ArrayHelper.indexOf(subclassPropertyNameClosure, propertyName);
}
origin: org.hibernate.orm/hibernate-core

public static boolean contains(Object[] array, Object object) {
  return indexOf( array, object ) > -1;
}
origin: org.hibernate/com.springsource.org.hibernate

private int getSubclassPropertyIndex(String propertyName) {
  return ArrayHelper.indexOf(subclassPropertyNameClosure, propertyName);
}
origin: org.hibernate.orm/hibernate-core

/**
 * Get the config value as a {@link String}.
 *
 * @param name The config setting name.
 * @param values The map of config parameters.
 * @param defaultValue The default value to use if not found.
 * @param otherSupportedValues List of other supported values. Does not need to contain the default one.
 *
 * @return The value.
 *
 * @throws ConfigurationException Unsupported value provided.
 *
 */
public static String getString(String name, Map values, String defaultValue, String ... otherSupportedValues) {
  final String value = getString( name, values, defaultValue );
  if ( !defaultValue.equals( value ) && ArrayHelper.indexOf( otherSupportedValues, value ) == -1 ) {
    throw new ConfigurationException(
        "Unsupported configuration [name=" + name + ", value=" + value + "]. " +
            "Choose value between: '" + defaultValue + "', '" + String.join( "', '", otherSupportedValues ) + "'."
    );
  }
  return value;
}
origin: org.hibernate/com.springsource.org.hibernate.core

int index = ArrayHelper.indexOf( getSubclassPropertyNameClosure(), rootPropertyName); //TODO: optimize this better!
return index==-1 ? 0 : getSubclassPropertyTableNumber(index);
origin: org.hibernate/com.springsource.org.hibernate

int index = ArrayHelper.indexOf( getSubclassPropertyNameClosure(), rootPropertyName); //TODO: optimize this better!
return index==-1 ? 0 : getSubclassPropertyTableNumber(index);
org.hibernate.internal.util.collectionsArrayHelperindexOf

Popular methods of ArrayHelper

  • fillArray
  • countTrue
  • isAllFalse
  • join
  • getBatchSizes
  • getNextBatchSize
  • hash
    calculate the array hash (only the first level)
  • toIntArray
  • toString
  • toStringArray
  • addAll
  • countNonNull
  • addAll,
  • countNonNull,
  • isAllNegative,
  • slice,
  • to2DIntArray,
  • to2DStringArray,
  • toBooleanArray,
  • toList,
  • toTypeArray

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BoxLayout (javax.swing)
  • JOptionPane (javax.swing)
  • Best plugins for Eclipse
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