程序包 org.hamcrest
类 BaseDescription
- java.lang.Object
- org.hamcrest.BaseDescription
- 所有已实现的接口:
Description
- 直接已知子类:
StringDescription
public abstract class BaseDescription extends Object implements Description
ADescription
that is stored as a string.
嵌套类概要
从接口继承的嵌套类/接口 org.hamcrest.Description
Description.NullDescription
字段概要
从接口继承的字段 org.hamcrest.Description
NONE
构造器概要
构造器 构造器 说明 BaseDescription()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract void
append(char c)
Append the char c to the description.protected void
append(String str)
Append the String str to the description.Description
appendDescriptionOf(SelfDescribing value)
Appends the description of aSelfDescribing
value to this description.Description
appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
Appends a list ofSelfDescribing
objects to the description.Description
appendText(String text)
Appends some plain text to the description.Description
appendValue(Object value)
Appends an arbitary value to the description.<T> Description
appendValueList(String start, String separator, String end, Iterable<T> values)
Appends a list of values to the description.<T> Description
appendValueList(String start, String separator, String end, T... values)
Appends a list of values to the description.
构造器详细资料
BaseDescription
public BaseDescription()
方法详细资料
appendText
public Description appendText(String text)
从接口复制的说明:Description
Appends some plain text to the description.- 指定者:
appendText
在接口中Description
appendDescriptionOf
public Description appendDescriptionOf(SelfDescribing value)
从接口复制的说明:Description
Appends the description of aSelfDescribing
value to this description.- 指定者:
appendDescriptionOf
在接口中Description
appendValue
public Description appendValue(Object value)
从接口复制的说明:Description
Appends an arbitary value to the description.- 指定者:
appendValue
在接口中Description
appendValueList
public <T> Description appendValueList(String start, String separator, String end, T... values)
从接口复制的说明:Description
Appends a list of values to the description.- 指定者:
appendValueList
在接口中Description
appendValueList
public <T> Description appendValueList(String start, String separator, String end, Iterable<T> values)
从接口复制的说明:Description
Appends a list of values to the description.- 指定者:
appendValueList
在接口中Description
appendList
public Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
从接口复制的说明:Description
Appends a list ofSelfDescribing
objects to the description.- 指定者:
appendList
在接口中Description
append
protected void append(String str)
Append the String str to the description. The default implementation passes every character toappend(char)
. Override in subclasses to provide an efficient implementation.
append
protected abstract void append(char c)
Append the char c to the description.