net.sourceforge.cruisecontrol.sourcecontrols.accurev
Class TransactionNumberTimespec
java.lang.Object
net.sourceforge.cruisecontrol.sourcecontrols.accurev.Timespec
net.sourceforge.cruisecontrol.sourcecontrols.accurev.TransactionNumberTimespec
- public final class TransactionNumberTimespec
- extends Timespec
Implements a "numeric" time-spec (n or n.m) format.
- Author:
- Nicola Orru'
Constructor Summary |
TransactionNumberTimespec(int transaction)
Creates a new TransactionNumberTimespec with no count (n form) |
TransactionNumberTimespec(int transaction,
int count)
Creates a new TransactionNumberTimespec with the given count (n.m form) |
Method Summary |
java.lang.String |
format()
formats the transaction (main) part onto a String |
Methods inherited from class net.sourceforge.cruisecontrol.sourcecontrols.accurev.Timespec |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HIGHEST
public static final KeywordTimespec HIGHEST
- Convenience constant containing the KewordTimespec "highest"
TransactionNumberTimespec
public TransactionNumberTimespec(int transaction)
- Creates a new TransactionNumberTimespec with no count (n form)
- Parameters:
transaction
- the transaction number
TransactionNumberTimespec
public TransactionNumberTimespec(int transaction,
int count)
- Creates a new TransactionNumberTimespec with the given count (n.m form)
- Parameters:
transaction
- the transaction numbercount
- the count
format
public java.lang.String format()
- formats the transaction (main) part onto a String
- Specified by:
format
in class Timespec
- Returns:
- the transaction number as a string