donaldp 02/03/23 16:46:04
Added: proposal/myrmidon/src/java/org/apache/antlib/cvslib
CVSEntry.java
Log:
no message
Revision Changes Path
1.1
jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/CVSEntry.java
Index: CVSEntry.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.antlib.cvslib;
import java.util.ArrayList;
import java.util.Date;
import java.util.Vector;
/**
* CVS Entry.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Jeff Martin</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/03/24 00:46:04 $
*/
class CVSEntry
{
private Date m_date;
private final String m_author;
private final String m_comment;
private final ArrayList m_files = new ArrayList();
public CVSEntry( Date date, String author, String comment )
{
m_date = date;
m_author = author;
m_comment = comment;
}
public void addFile( String file, String revision )
{
m_files.add( new RCSFile( file, revision ) );
}
public void addFile( String file, String revision, String
previousRevision )
{
m_files.add( new RCSFile( file, revision, previousRevision ) );
}
Date getDate()
{
return m_date;
}
String getAuthor()
{
return m_author;
}
String getComment()
{
return m_comment;
}
ArrayList getFiles()
{
return m_files;
}
public String toString()
{
return getAuthor() + "\n" + getDate() + "\n" + getFiles() + "\n" +
getComment();
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>