Package net.sf.statcvs.model
Class SymbolicName
java.lang.Object
net.sf.statcvs.model.SymbolicName
- All Implemented Interfaces:
Comparable
Represents a symbolic name (tags).
It is a container for
Revision
s.- Version:
- $Id: SymbolicName.java,v 1.6 2009/08/20 17:44:05 benoitx Exp $
- Author:
- Tammo van Lessen
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolicName
(String name) Creates a new symbolic name.SymbolicName
(String name, Date date) Creates a new symbolic name. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRevision
(Revision rev) Adds a revision to this symbolic name.int
boolean
getDate()
Returns the 'date' of this symbolic name.getName()
Returns the symbolic name's name.Returns a set ofRevision
s contained in this symbolic name.int
hashCode()
toString()
-
Constructor Details
-
SymbolicName
Creates a new symbolic name.- Parameters:
name
- the symbolic name's namedate
- of the symbolic name creation
-
SymbolicName
Creates a new symbolic name. With this constructor, its creation date will be assumed to be the date of its latest revision.- Parameters:
name
- the symbolic name's name
-
-
Method Details
-
getName
Returns the symbolic name's name.- Returns:
- the symbolic name's name.
-
addRevision
Adds a revision to this symbolic name.- Parameters:
rev
- the revision
-
getRevisions
Returns a set ofRevision
s contained in this symbolic name.- Returns:
- the revisions
-
getDate
Returns the 'date' of this symbolic name.- Returns:
- the smbolic name's date
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-