Klasse Blames

java.lang.Object
io.jenkins.plugins.forensics.blame.Blames
Alle implementierten Schnittstellen:
Serializable

public class Blames extends Object implements Serializable
Provides access to the blame information for a collection of workspace files. File names must use absolute paths. Additionally, info and error messages during the SCM processing can be stored.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    add(FileBlame additionalBlame)
    Adds the specified blame to this collection of blames.
    void
    addAll(Blames other)
    Merges all specified blames with the current collection of blames.
    boolean
    contains(String fileName)
    Returns whether there are blames for the specified file.
    boolean
     
    getBlame(String fileName)
    Returns the blame information for the specified file.
    Returns all files with blames.
    int
     
    boolean
    Returns whether there are files with blames.
    int
    Returns the number of files with blames.

    Von Klasse geerbte Methoden java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Blames

      public Blames()
  • Methodendetails

    • add

      public void add(FileBlame additionalBlame)
      Adds the specified blame to this collection of blames.
      Parameter:
      additionalBlame - the blame to add
    • addAll

      public void addAll(Blames other)
      Merges all specified blames with the current collection of blames.
      Parameter:
      other - the blames to add
    • isEmpty

      public boolean isEmpty()
      Returns whether there are files with blames.
      Gibt zurück:
      true if there a no blames available, false otherwise
    • size

      public int size()
      Returns the number of files with blames.
      Gibt zurück:
      number of affected files with blames
    • contains

      public boolean contains(String fileName)
      Returns whether there are blames for the specified file.
      Parameter:
      fileName - the relative or absolute path of the file
      Gibt zurück:
      true if the file already has been added, false otherwise
    • getFiles

      public Set<String> getFiles()
      Returns all files with blames.
      Gibt zurück:
      the files with blames
    • getBlame

      public FileBlame getBlame(String fileName)
      Returns the blame information for the specified file.
      Parameter:
      fileName - the absolute path of the file
      Gibt zurück:
      the blame information for the specified file.
      Löst aus:
      NoSuchElementException - if the file name is not registered
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object