com.agical.rmock.core.match.reference
Class ToStringReference
java.lang.Object
com.agical.rmock.core.match.reference.ToStringReference
- All Implemented Interfaces:
- Reference
public class ToStringReference
- extends java.lang.Object
- implements Reference
References objects and describes them with object.toString()
(c) 2005 Agical AB
- Author:
- joakim.ohlrogge
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToStringReference
public ToStringReference(java.lang.Object object)
getObject
public java.lang.Object getObject()
- Specified by:
getObject in interface Reference
- Returns:
- the referenced object
describeWith
public void describeWith(ExpressionDescriber expressionDescriber)
throws java.io.IOException
- Description copied from interface:
Reference
- Describes this reference with the given describer
- Specified by:
describeWith in interface Reference
- Parameters:
expressionDescriber - The describer to use
- Throws:
java.io.IOException
objectEquals
public boolean objectEquals(java.lang.Object object)
- Specified by:
objectEquals in interface Reference
- Returns:
- true if the referenced object is equal to the passed object.
objectCompareTo
public int objectCompareTo(java.lang.Object object)
- Description copied from interface:
Reference
- compares the referenced object to another object
- Specified by:
objectCompareTo in interface Reference
- Parameters:
object - the object to compare to
- Returns:
- > 0 if greater than, 0 if equal to, < 0 if less than.
Copyright © 2005-2011 Agical AB. All Rights Reserved.