|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectth.co.edge.jseq.MockObject
public class MockObject
A MockObject is an immutable class representing one life-line
in a sequence diagram.
| Constructor Summary | |
|---|---|
MockObject(java.lang.String name,
int column)
Creates a new MockObject with a given name and column in
the diagram. |
|
| Method Summary | |
|---|---|
int |
compareTo(MockObject otherObject)
Compares this MockObject to another
MockObject, returning a negative integer, zero or a
positive integer if this object is less than, equal to, or greater than
the other object, respectively. |
boolean |
equals(java.lang.Object o)
Compares this MockObject to another object and returns
true if and only if the other object is a
MockObject with the same name and column number. |
int |
getColumn()
Returns the column number of this MockObject, which
determines the order of the life-lines in the sequence diagram. |
java.lang.String |
getName()
Returns the name that will be displayed at the top of the life-line. |
int |
hashCode()
Returns a hash code for this MockObject. |
java.lang.String |
toString()
Returns a string representation of this MockObject,
mainly useful for logging. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockObject(java.lang.String name,
int column)
MockObject with a given name and column in
the diagram.
name - the name that will be displayed at the top of the life-linecolumn - the column number of this life-line| Method Detail |
|---|
public java.lang.String getName()
MockObjectpublic int getColumn()
MockObject, which
determines the order of the life-lines in the sequence diagram.
MockObjectpublic java.lang.String toString()
MockObject,
mainly useful for logging.
toString in class java.lang.ObjectMockObjectpublic boolean equals(java.lang.Object o)
MockObject to another object and returns
true if and only if the other object is a
MockObject with the same name and column number.
equals in class java.lang.Objecto - the object to compare this MockObject to
true if o is a
MockObject with the same name and column number,
false otherwisepublic int hashCode()
MockObject.
hashCode in class java.lang.ObjectMockObjectpublic int compareTo(MockObject otherObject)
MockObject to another
MockObject, returning a negative integer, zero or a
positive integer if this object is less than, equal to, or greater than
the other object, respectively.
Comparison is done as follows:
compareTo in interface java.lang.Comparable<MockObject>otherObject - the MockObject to compare this object to
0 if this object is equal to
otherObject; a negative integer if this object is
smaller than otherObject; and a positive integer
if this object is greater than otherObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||