Class Checksum

java.lang.Object
org.spdx.maven.Checksum

public class Checksum extends Object
Holds the value and algorithm of a checksum used in the SPDX document
Author:
Gary O'Neall
  • Constructor Details

    • Checksum

      public Checksum(String algorithm, String value)
      Parameters:
      algorithm - checksum algorithm
      value - checksum result
  • Method Details

    • getValue

      public String getValue()
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Parameters:
      value - the value to set
    • getAlgorithm

      public String getAlgorithm()
      Returns:
      the algorithm
    • setAlgorithm

      public void setAlgorithm(String algorithm)
      Parameters:
      algorithm - the algorithm to set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object