org.apache.maven.scm
Class ScmFile
java.lang.Object
org.apache.maven.scm.ScmFile
- All Implemented Interfaces:
- Serializable, Comparable<ScmFile>
public class ScmFile
- extends Object
- implements Comparable<ScmFile>, Serializable
- Version:
- $Id: ScmFile.java 1339553 2012-05-17 11:18:35Z rfscholte $
- Author:
- Trygve Laugstøl
- See Also:
- Serialized Form
ScmFile
public ScmFile(String path,
ScmFileStatus status)
- Parameters:
path
- The relative path of the file, should never start with any File.separator
.status
- The file status
getPath
public String getPath()
- Returns the relative path of the file.
- Returns:
- the file path
getStatus
public ScmFileStatus getStatus()
- Returns:
- The file status
compareTo
public int compareTo(ScmFile other)
-
- Specified by:
compareTo
in interface Comparable<ScmFile>
equals
public boolean equals(Object other)
-
- Overrides:
equals
in class Object
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class Object
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.