Package org.apache.maven.scm
Class ScmFile
- java.lang.Object
-
- org.apache.maven.scm.ScmFile
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ScmFile>
public class ScmFile extends java.lang.Object implements java.lang.Comparable<ScmFile>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
path
private static long
serialVersionUID
private ScmFileStatus
status
-
Constructor Summary
Constructors Constructor Description ScmFile(java.lang.String path, ScmFileStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ScmFile other)
boolean
equals(java.lang.Object other)
java.lang.String
getPath()
Returns the relative path of the file.ScmFileStatus
getStatus()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
path
private java.lang.String path
-
status
private ScmFileStatus status
-
-
Constructor Detail
-
ScmFile
public ScmFile(java.lang.String path, ScmFileStatus status)
- Parameters:
path
- The relative path of the file, should never start with anyFile.separator
.status
- The file status
-
-
Method Detail
-
getPath
public java.lang.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 interfacejava.lang.Comparable<ScmFile>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-