Class SymbolicName
java.lang.Object
net.sf.statcvs.model.SymbolicName
- All Implemented Interfaces:
Comparable
Represents a symbolic name (tags).
It is a container for
Revisions.- 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 voidaddRevision(Revision rev) Adds a revision to this symbolic name.intbooleangetDate()Returns the 'date' of this symbolic name.getName()Returns the symbolic name's name.Returns a set ofRevisions contained in this symbolic name.inthashCode()toString()
-
Constructor Details
-
SymbolicName
-
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
-
addRevision
Adds a revision to this symbolic name.- Parameters:
rev- the revision
-
getRevisions
-
getDate
-
compareTo
- Specified by:
compareToin interfaceComparable- See Also:
-
toString
-
equals
-
hashCode
-