org.hamcrest
Class StringDescription
java.lang.Object
   org.hamcrest.BaseDescription
org.hamcrest.BaseDescription
       org.hamcrest.StringDescription
org.hamcrest.StringDescription
- All Implemented Interfaces: 
- Description
- public class StringDescription 
- extends BaseDescription
A Description that is stored as a string.
 
 
 
 
 
 
 
 
StringDescription
public StringDescription()
StringDescription
public StringDescription(Appendable out)
toString
public static String toString(SelfDescribing selfDescribing)
- Return the description of a SelfDescribingobject as a String.
 
- 
- Parameters:
- selfDescribing- The object to be described.
- Returns:
- The description of the object.
 
asString
public static String asString(SelfDescribing selfDescribing)
- Alias for toString(SelfDescribing).
 
- 
 
append
protected void append(String str)
- Description copied from class: BaseDescription
- Append the String str to the description.  
 The default implementation passes every character to BaseDescription.append(char).  
 Override in subclasses to provide an efficient implementation.
 
- 
- Overrides:
- appendin class- BaseDescription
 
- 
 
append
protected void append(char c)
- Description copied from class: BaseDescription
- Append the char c to the description.
 
- 
- Specified by:
- appendin class- BaseDescription
 
- 
 
toString
public String toString()
- Returns the description as a string.
 
- 
- Overrides:
- toStringin class- Object
 
-