org.jcoderz.commons.types.samples
Class BarValueObject

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

public class BarValueObject
extends Object
implements Serializable

The Bar is documented here!

Author:
generated
See Also:
Serialized Form

Constructor Summary
BarValueObject(BarValueObject aBarValueObject)
          Copy constructor for BarValueObject.
BarValueObject(Date aCreationDate)
          Constructs a BarValueObject with the minimum arguments.
BarValueObject(long aId, Date aCreationDate)
          Constructs a BarValueObject with all arguments.
 
Method Summary
 boolean equals(Object object)
          Returns true if this BarValueObject is equal to object.
 Date getCreationDate()
          Returns the creation date of Buz.
 long getId()
          Returns the unique identifier for Foo.
 int hashCode()
          Override hashCode.
 void setId(long aId)
          Sets the unique identifier for Foo.
 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

BarValueObject

public BarValueObject(Date aCreationDate)
Constructs a BarValueObject with the minimum arguments.

Parameters:
aCreationDate - The creation date of Buz.

BarValueObject

public BarValueObject(long aId,
                      Date aCreationDate)
Constructs a BarValueObject with all arguments.

Parameters:
aId - The unique identifier for Foo.
aCreationDate - The creation date of Buz.

BarValueObject

public BarValueObject(BarValueObject aBarValueObject)
Copy constructor for BarValueObject. No deep copy is performed.

Parameters:
aBarValueObject - The BarValueObject to be copied.
Method Detail

getId

public long getId()
Returns the unique identifier for Foo.

Returns:
the unique identifier for Foo.

setId

public void setId(long aId)
Sets the unique identifier for Foo.

Parameters:
aId - the unique identifier for Foo to be set.

getCreationDate

public Date getCreationDate()
Returns the creation date of Buz.

Returns:
the creation date of Buz.

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 BarValueObject is equal to object.

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


Copyright 2007 The jCoderZ Project.