Class AbstractElement<E extends AbstractElement<E>>

java.lang.Object
org.assertj.db.global.AbstractElement<E>
Type Parameters:
E - the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
All Implemented Interfaces:
org.assertj.core.api.Descriptable<E>
Direct Known Subclasses:
AbstractAssert, AbstractOutputter

public abstract class AbstractElement<E extends AbstractElement<E>> extends Object implements org.assertj.core.api.Descriptable<E>
Base class for all elements of assertj-db.
Author:
Régis Pouiller
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.assertj.core.api.WritableAssertionInfo
    Writable information about an element.
    protected final E
    Class of the assertion.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractElement(Class<E> selfType)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    as(String description, Object... args)
    as(org.assertj.core.description.Description description)
    describedAs(String description, Object... args)
    describedAs(org.assertj.core.description.Description description)
    final org.assertj.core.api.WritableAssertionInfo
    Returns the information about an element.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.assertj.core.api.Descriptable

    as
  • Field Details

    • info

      protected final org.assertj.core.api.WritableAssertionInfo info
      Writable information about an element.
    • myself

      protected final E extends AbstractElement<E> myself
      Class of the assertion.
  • Constructor Details

    • AbstractElement

      protected AbstractElement(Class<E> selfType)
      Constructor.
      Parameters:
      selfType - Class of this assertion class : a sub-class of AbstractElement.
  • Method Details

    • as

      public E as(String description, Object... args)
      Specified by:
      as in interface org.assertj.core.api.Descriptable<E extends AbstractElement<E>>
    • as

      public E as(org.assertj.core.description.Description description)
      Specified by:
      as in interface org.assertj.core.api.Descriptable<E extends AbstractElement<E>>
    • describedAs

      public E describedAs(String description, Object... args)
      Specified by:
      describedAs in interface org.assertj.core.api.Descriptable<E extends AbstractElement<E>>
    • describedAs

      public E describedAs(org.assertj.core.description.Description description)
      Specified by:
      describedAs in interface org.assertj.core.api.Descriptable<E extends AbstractElement<E>>
    • getInfo

      public final org.assertj.core.api.WritableAssertionInfo getInfo()
      Returns the information about an element.
      Returns:
      The information about an element.