Package org.assertj.core.error
Class GroupTypeDescription
- java.lang.Object
-
- org.assertj.core.error.GroupTypeDescription
-
public class GroupTypeDescription extends java.lang.Object
Generates a description for the type of a group of elements. The description is used in the error message.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
elementTypeName
private java.lang.String
groupTypeName
private static int
SPLITERATORS_CLASS_STACK_TRACE_NUM
-
Constructor Summary
Constructors Constructor Description GroupTypeDescription(java.lang.String groupTypeName, java.lang.String elementTypeName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementTypeName()
static GroupTypeDescription
getGroupTypeDescription(java.lang.Class<?> clazz)
Creates a new
for a group of elements.GroupTypeDescription
static GroupTypeDescription
getGroupTypeDescription(java.lang.Object actual)
Creates a new
for a group of elements.GroupTypeDescription
java.lang.String
getGroupTypeName()
-
-
-
Field Detail
-
SPLITERATORS_CLASS_STACK_TRACE_NUM
private static final int SPLITERATORS_CLASS_STACK_TRACE_NUM
- See Also:
- Constant Field Values
-
groupTypeName
private java.lang.String groupTypeName
-
elementTypeName
private java.lang.String elementTypeName
-
-
Method Detail
-
getElementTypeName
public java.lang.String getElementTypeName()
-
getGroupTypeName
public java.lang.String getGroupTypeName()
-
getGroupTypeDescription
public static GroupTypeDescription getGroupTypeDescription(java.lang.Object actual)
Creates a new
for a group of elements.GroupTypeDescription
- Parameters:
actual
- the group of elements.- Returns:
- the created GroupTypeDescription object
-
getGroupTypeDescription
public static GroupTypeDescription getGroupTypeDescription(java.lang.Class<?> clazz)
Creates a new
for a group of elements.GroupTypeDescription
- Parameters:
clazz
- the class for the group of elements.- Returns:
- the created GroupTypeDescription object
-
-