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:
  • Constructor Details

    • IndexEntry

      public IndexEntry(String mode, String type, String object, String file)
      Constructor for IndexEntry.
      Parameters:
      mode - a String object.
      type - a String object.
      object - a String object.
      file - a String object.
    • IndexEntry

      public IndexEntry(org.eclipse.jgit.submodule.SubmoduleWalk walk)
      Populates an IndexEntry from the current node that SubmoduleWalk is pointing to.
      Parameters:
      walk - a SubmoduleWalk object.
  • Method Details

    • 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
    • getType

      public String getType()
      Getter for the field type.
      Returns:
      a String object.
    • setType

      public void setType(String type)
      Setter for the field type.
      Parameters:
      type - a String object.
    • getObject

      public String getObject()
      Getter for the field object.
      Returns:
      a String object.
    • setObject

      public void setObject(String object)
      Setter for the field object.
      Parameters:
      object - a String object.
    • getFile

      public String getFile()
      Getter for the field file.
      Returns:
      a String object.
    • setFile

      public void setFile(String file)
      Setter for the field file.
      Parameters:
      file - a String object.
    • toString

      public String toString()
      toString.
      Overrides:
      toString in class Object
      Returns:
      a String object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object