Changeset View
Changeset View
Standalone View
Standalone View
java/server/src/main/java/org/softwareheritage/graph/SwhId.java
package org.softwareheritage.graph; | package org.softwareheritage.graph; | ||||
import com.fasterxml.jackson.annotation.JsonValue; | import com.fasterxml.jackson.annotation.JsonValue; | ||||
import org.softwareheritage.graph.Node; | import org.softwareheritage.graph.Node; | ||||
/** | /** | ||||
* A Software Heritage PID, see <a | * A Software Heritage PID, see <a | ||||
* href="https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html#persistent-identifiers">persistent | * href="https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html#persistent-identifiers">persistent | ||||
* identifier documentation</a>. | * identifier documentation</a>. | ||||
* | * | ||||
* @author Thibault Allançon | * @author Thibault Allançon | ||||
* @version 1.0 | * @version 0.0.1 | ||||
* @since 1.0 | * @since 0.0.1 | ||||
*/ | */ | ||||
public class SwhId { | public class SwhId { | ||||
/** Fixed hash length of the PID */ | /** Fixed hash length of the PID */ | ||||
public static final int HASH_LENGTH = 40; | public static final int HASH_LENGTH = 40; | ||||
/** Full PID as a string */ | /** Full PID as a string */ | ||||
String swhId; | String swhId; | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |