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 anIndexEntryfrom the current node thatSubmoduleWalkis pointing to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFile()Getter for the fieldfile.StringgetMode()Returns the mode of this entry as a String.StringgetObject()Getter for the fieldobject.StringgetType()Getter for the fieldtype.inthashCode()voidsetFile(String file)Setter for the fieldfile.voidsetMode(String mode)Sets the mode of this Entry.voidsetObject(String object)Setter for the fieldobject.voidsetType(String type)Setter for the fieldtype.StringtoString()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 anIndexEntryfrom the current node thatSubmoduleWalkis pointing to.- Parameters:
walk- aSubmoduleWalkobject.
-
-
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- aStringobject.
-
setObject
public void setObject(String object)
Setter for the fieldobject.- Parameters:
object- aStringobject.
-
setFile
public void setFile(String file)
Setter for the fieldfile.- Parameters:
file- aStringobject.
-
toString
public String toString()
toString.
-
-