org.jcoderz.commons.types.samples
Class CopyValueSampleObject

java.lang.Object
  extended by org.jcoderz.commons.types.samples.CopyValueSampleObject
All Implemented Interfaces:
Serializable

public class CopyValueSampleObject
extends Object
implements Serializable

Class to test the 'copyValue functionality

Author:
generated
See Also:
Serialized Form

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

CopyValueSampleObject

public CopyValueSampleObject(BarValueObject aSampleBar)
Constructs a CopyValueSampleObject with the minimum arguments.

Parameters:
aSampleBar - The Sample value copied via copy constructor. The value is copied using the copy constructor before being stored.

CopyValueSampleObject

public CopyValueSampleObject(Date aModificationDate,
                             BarValueObject aSampleBar)
Constructs a CopyValueSampleObject with all arguments.

Parameters:
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.

CopyValueSampleObject

public CopyValueSampleObject(CopyValueSampleObject aCopyValueSampleObject)
Copy constructor for CopyValueSampleObject. No deep copy is performed.

Parameters:
aCopyValueSampleObject - The CopyValueSampleObject to be copied.
Method Detail

getModificationDate

public Date getModificationDate()
Returns the Sample value copied via clone. The value is cloned before being returned.

Returns:
the Sample value copied via clone.

setModificationDate

public void setModificationDate(Date aModificationDate)
Sets the Sample value copied via clone. The value is cloned before being stored.

Parameters:
aModificationDate - the Sample value copied via clone to be set.

getSampleBar

public BarValueObject getSampleBar()
Returns the Sample value copied via copy constructor. The value is copied using the copy constructor before being returned.

Returns:
the Sample value copied via copy constructor.

toString

public String toString()
Creates a String representation of this object holding the state of all members.

Overrides:
toString in class Object
Returns:
a String representation of this object.

hashCode

public int hashCode()
Override hashCode.

Overrides:
hashCode in class Object
Returns:
the Objects hashcode.

equals

public boolean equals(Object object)
Returns true if this CopyValueSampleObject is equal to object.

Overrides:
equals in class Object
Parameters:
object - the object to compare to.
Returns:
true if this CopyValueSampleObject is equal to object.


Copyright 2007 The jCoderZ Project.