Package com.enonic.xp.content

## Class ValidationErrors

- java.lang.Object
- - com.enonic.xp.content.ValidationErrors

-     public final class ValidationErrors
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `ValidationErrors.Builder` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ValidationErrors.Builder` | `create()` |
    `boolean` | `equals​(Object o)` |
    `boolean` | `hasErrors()` | Returns true if there were any errors.
    `int` | `hashCode()` |
    `Stream<ValidationError>` | `stream()` | Returns a stream of `ValidationError` instances.

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

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

- - ### Method Detail

    - #### create

          public static ValidationErrors.Builder create()

    - #### hasErrors

          public boolean hasErrors()

      Returns true if there were any errors.
      Returns:
        true if there were any errors

    - #### stream

          public Stream<ValidationError> stream()

      Returns a stream of `ValidationError` instances.
      Returns:
        a stream of `ValidationError` instances

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`