Tabnine Logo
Log.getHasToBeABoxedTypeException
Code IndexAdd Tabnine to your IDE (free)

How to use
getHasToBeABoxedTypeException
method
in
org.hibernate.validator.internal.util.logging.Log

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getHasToBeABoxedTypeException (Showing top 2 results out of 315)

origin: org.hibernate.validator/hibernate-validator

/**
 * Returns the primitive type for a boxed type.
 *
 * @param type the boxed type
 *
 * @return the primitive type for a auto-boxed type. In case {@link Void} is
 *         passed (which is considered as primitive type by
 *         {@link Class#isPrimitive()}), {@link Void} will be returned.
 *
 * @throws IllegalArgumentException in case the parameter {@code primitiveType} does not
 * represent a primitive type.
 */
public static Class<?> unBoxedType(Class<?> type) {
  Class<?> wrapperType = WRAPPER_TO_PRIMITIVE_TYPES.get( type );
  if ( wrapperType == null ) {
    throw LOG.getHasToBeABoxedTypeException( type.getClass() );
  }
  return wrapperType;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

  /**
   * Returns the primitive type for a boxed type.
   *
   * @param type the boxed type
   *
   * @return the primitive type for a auto-boxed type. In case {@link Void} is
   *         passed (which is considered as primitive type by
   *         {@link Class#isPrimitive()}), {@link Void} will be returned.
   *
   * @throws IllegalArgumentException in case the parameter {@code primitiveType} does not
   * represent a primitive type.
   */
  public static Class<?> unBoxedType(Class<?> type) {
    Class<?> wrapperType = WRAPPER_TO_PRIMITIVE_TYPES.get( type );

    if ( wrapperType == null ) {
      throw log.getHasToBeABoxedTypeException( type.getClass() );
    }

    return wrapperType;
  }
}
org.hibernate.validator.internal.util.loggingLoggetHasToBeABoxedTypeException

Popular methods of Log

  • getInvalidRegularExpressionException
  • getInvalidLengthForFractionPartException
  • getInvalidLengthForIntegerPartException
  • getLengthCannotBeNegativeException
  • getMaxCannotBeNegativeException
  • getMinCannotBeNegativeException
  • debug
  • debugf
  • errorInExpressionLanguage
  • evaluatingExpressionLanguageExpressionCausedException
  • getAnnotationDoesNotContainAParameterException
  • getAtLeastOneCustomMessageMustBeCreatedException
  • getAnnotationDoesNotContainAParameterException,
  • getAtLeastOneCustomMessageMustBeCreatedException,
  • getAtLeastOneGroupHasToBeSpecifiedException,
  • getAttemptToSpecifyAnArrayWhereSingleValueIsExpectedException,
  • getBeanClassHasAlreadyBeConfiguredViaProgrammaticApiException,
  • getBeanClassMustBePartOfRedefinedDefaultGroupSequenceException,
  • getBeanDoesNotContainConstructorException,
  • getBeanDoesNotContainMethodException,
  • getBeanDoesNotContainTheFieldException,
  • getBeanDoesNotContainThePropertyException

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JList (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