Package hudson.plugins.git
Class IndexEntry
- java.lang.Object
-
- hudson.plugins.git.IndexEntry
-
- All Implemented Interfaces:
Serializable
public class IndexEntry extends Object implements Serializable
Git index / tree entry.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndexEntry(String mode, String type, String object, String file)
Constructor for IndexEntry.IndexEntry(org.eclipse.jgit.submodule.SubmoduleWalk walk)
Populates anIndexEntry
from the current node thatSubmoduleWalk
is pointing to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getFile()
Getter for the fieldfile
.String
getMode()
Returns the mode of this entry as a String.String
getObject()
Getter for the fieldobject
.String
getType()
Getter for the fieldtype
.int
hashCode()
void
setFile(String file)
Setter for the fieldfile
.void
setMode(String mode)
Sets the mode of this Entry.void
setObject(String object)
Setter for the fieldobject
.void
setType(String type)
Setter for the fieldtype
.String
toString()
toString.
-
-
-
Constructor Detail
-
IndexEntry
public IndexEntry(String mode, String type, String object, String file)
Constructor for IndexEntry.
-
IndexEntry
public IndexEntry(org.eclipse.jgit.submodule.SubmoduleWalk walk)
Populates anIndexEntry
from the current node thatSubmoduleWalk
is pointing to.- Parameters:
walk
- aSubmoduleWalk
object.
-
-
Method Detail
-
getMode
public String getMode()
Returns the mode of this entry as a String.- Returns:
- mode of this entry as a
String
.
-
setMode
public void setMode(String mode)
Sets the mode of this Entry.- Parameters:
mode
- value to be assigned
-
setType
public void setType(String type)
Setter for the fieldtype
.- Parameters:
type
- aString
object.
-
setObject
public void setObject(String object)
Setter for the fieldobject
.- Parameters:
object
- aString
object.
-
setFile
public void setFile(String file)
Setter for the fieldfile
.- Parameters:
file
- aString
object.
-
toString
public String toString()
toString.
-
-