Package org.assertj.db.global
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionas
(org.assertj.core.description.Description description) describedAs
(String description, Object... args) describedAs
(org.assertj.core.description.Description description) final org.assertj.core.api.WritableAssertionInfo
getInfo()
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 infoWritable information about an element. -
myself
Class of the assertion.
-
-
Constructor Details
-
AbstractElement
Constructor.- Parameters:
selfType
- Class of this assertion class : a sub-class ofAbstractElement
.
-
-
Method Details
-
as
- Specified by:
as
in interfaceorg.assertj.core.api.Descriptable<E extends AbstractElement<E>>
-
as
- Specified by:
as
in interfaceorg.assertj.core.api.Descriptable<E extends AbstractElement<E>>
-
describedAs
- Specified by:
describedAs
in interfaceorg.assertj.core.api.Descriptable<E extends AbstractElement<E>>
-
describedAs
- Specified by:
describedAs
in interfaceorg.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.
-