public abstract static class ExternalId.Key extends Object implements Serializable
Constructor and Description |
---|
Key() |
Modifier and Type | Method and Description |
---|---|
AccountExternalId.Key |
asAccountExternalIdKey() |
static ExternalId.Key |
create(String scheme,
String id) |
static ExternalId.Key |
from(AccountExternalId.Key externalIdKey) |
String |
get()
Exports this external ID key as string with the format "scheme:id", or "id" id scheme is
null.
|
abstract String |
id() |
boolean |
isScheme(String scheme) |
static ExternalId.Key |
parse(String externalId)
Parses an external ID key from a string in the format "scheme:id" or "id".
|
abstract String |
scheme() |
org.eclipse.jgit.lib.ObjectId |
sha1()
Returns the SHA1 of the external ID that is used as note ID in the refs/meta/external-ids
notes branch.
|
static Set<AccountExternalId.Key> |
toAccountExternalIdKeys(Collection<ExternalId.Key> extIdKeys) |
String |
toString() |
public static ExternalId.Key create(String scheme, String id)
public static ExternalId.Key from(AccountExternalId.Key externalIdKey)
public static ExternalId.Key parse(String externalId)
public static Set<AccountExternalId.Key> toAccountExternalIdKeys(Collection<ExternalId.Key> extIdKeys)
public abstract String scheme()
public abstract String id()
public boolean isScheme(String scheme)
public AccountExternalId.Key asAccountExternalIdKey()
public org.eclipse.jgit.lib.ObjectId sha1()
public String get()
This string representation is used as subsection name in the Git config file that stores the external ID.