|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.types.samples.CopyValueSampleObject
public class CopyValueSampleObject
Class to test the 'copyValue functionality
| Constructor Summary | |
|---|---|
CopyValueSampleObject(BarValueObject aSampleBar)
Constructs a CopyValueSampleObject with the minimum arguments. |
|
CopyValueSampleObject(CopyValueSampleObject aCopyValueSampleObject)
Copy constructor for CopyValueSampleObject. |
|
CopyValueSampleObject(Date aModificationDate,
BarValueObject aSampleBar)
Constructs a CopyValueSampleObject with all arguments. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns true if this CopyValueSampleObject
is equal to object. |
Date |
getModificationDate()
Returns the Sample value copied via clone. |
BarValueObject |
getSampleBar()
Returns the Sample value copied via copy constructor. |
int |
hashCode()
Override hashCode. |
void |
setModificationDate(Date aModificationDate)
Sets the Sample value copied via clone. |
String |
toString()
Creates a String representation of this object holding the state of all members. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CopyValueSampleObject(BarValueObject aSampleBar)
aSampleBar - The Sample value copied via copy constructor.
The value is copied using the copy constructor before being stored.
public CopyValueSampleObject(Date aModificationDate,
BarValueObject aSampleBar)
aModificationDate - The Sample value copied via clone.
The value is cloned before being stored.aSampleBar - The Sample value copied via copy constructor.
The value is copied using the copy constructor before being stored.public CopyValueSampleObject(CopyValueSampleObject aCopyValueSampleObject)
aCopyValueSampleObject - The CopyValueSampleObject
to be copied.| Method Detail |
|---|
public Date getModificationDate()
public void setModificationDate(Date aModificationDate)
aModificationDate - the Sample value copied via clone to be set.public BarValueObject getSampleBar()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
true if this CopyValueSampleObject
is equal to object.
equals in class Objectobject - the object to compare to.
true if this CopyValueSampleObject
is equal to object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||