org.hibernate.validator.internal.constraintvalidators

## Class NotNullValidator

- java.lang.Object
- - org.hibernate.validator.internal.constraintvalidators.NotNullValidator

- All Implemented Interfaces:
    ConstraintValidator<NotNull,Object>

      public class NotNullValidator
      extends Object
      implements ConstraintValidator<NotNull,Object>

  Validate that the object is not `null`.
  Author:
    Emmanuel Bernard

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NotNullValidator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `initialize(NotNull parameters)`
    `boolean` | `isValid(Object object, ConstraintValidatorContext constraintValidatorContext)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NotNullValidator

          public NotNullValidator()

  - ### Method Detail

    - #### initialize

          public void initialize(NotNull parameters)

      Specified by:
        `initialize` in interface `ConstraintValidator<NotNull,Object>`

    - #### isValid

          public boolean isValid(Object object,
                        ConstraintValidatorContext constraintValidatorContext)

      Specified by:
        `isValid` in interface `ConstraintValidator<NotNull,Object>`

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved