程序包 org.hamcrest
类 BaseDescription
- java.lang.Object
- org.hamcrest.BaseDescription
- 所有已实现的接口:
Description
- 直接已知子类:
StringDescription
public abstract class BaseDescription extends Object implements Description
ADescriptionthat is stored as a string.
嵌套类概要
从接口继承的嵌套类/接口 org.hamcrest.Description
Description.NullDescription
字段概要
从接口继承的字段 org.hamcrest.Description
NONE
构造器概要
构造器 构造器 说明 BaseDescription()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract voidappend(char c)Append the char c to the description.protected voidappend(String str)Append the String str to the description.DescriptionappendDescriptionOf(SelfDescribing value)Appends the description of aSelfDescribingvalue to this description.DescriptionappendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)Appends a list ofSelfDescribingobjects to the description.DescriptionappendText(String text)Appends some plain text to the description.DescriptionappendValue(Object value)Appends an arbitary value to the description.<T> DescriptionappendValueList(String start, String separator, String end, Iterable<T> values)Appends a list of values to the description.<T> DescriptionappendValueList(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)
从接口复制的说明:DescriptionAppends some plain text to the description.- 指定者:
appendText在接口中Description
appendDescriptionOf
public Description appendDescriptionOf(SelfDescribing value)
从接口复制的说明:DescriptionAppends the description of aSelfDescribingvalue to this description.- 指定者:
appendDescriptionOf在接口中Description
appendValue
public Description appendValue(Object value)
从接口复制的说明:DescriptionAppends an arbitary value to the description.- 指定者:
appendValue在接口中Description
appendValueList
public <T> Description appendValueList(String start, String separator, String end, T... values)
从接口复制的说明:DescriptionAppends a list of values to the description.- 指定者:
appendValueList在接口中Description
appendValueList
public <T> Description appendValueList(String start, String separator, String end, Iterable<T> values)
从接口复制的说明:DescriptionAppends a list of values to the description.- 指定者:
appendValueList在接口中Description
appendList
public Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
从接口复制的说明:DescriptionAppends a list ofSelfDescribingobjects 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.