Class ExternalId.Key
java.lang.Object
com.google.gerrit.server.account.externalids.ExternalId.Key
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExternalId
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.ObjectId
static ExternalId.Key
Creates an external ID key.final boolean
static com.google.common.collect.ImmutableSet<ExternalId.Key>
from
(Collection<ExternalId> extIds) get()
Exports this external ID key as string with the format "scheme:id", or "id" if scheme is null.int
hashCode()
abstract String
id()
abstract boolean
boolean
static ExternalId.Key
Parses an external ID key from a string in the format "scheme:id" or "id".abstract String
scheme()
org.eclipse.jgit.lib.ObjectId
sha1()
final String
toString()
-
Constructor Details
-
Key
public Key()
-
-
Method Details
-
create
Creates an external ID key.- Parameters:
scheme
- the scheme name, must not contain colons (':'), can benull
id
- the external ID, must not contain colons (':')isCaseInsensitive
- whether the external ID key is matched case insensitively- Returns:
- the created external ID key
-
parse
Parses an external ID key from a string in the format "scheme:id" or "id".- Returns:
- the parsed external ID key
-
scheme
-
id
-
isCaseInsensitive
public abstract boolean isCaseInsensitive() -
isScheme
-
sha1
@Memoized public org.eclipse.jgit.lib.ObjectId sha1() -
caseSensitiveSha1
@Memoized public org.eclipse.jgit.lib.ObjectId caseSensitiveSha1() -
get
Exports this external ID key as string with the format "scheme:id", or "id" if scheme is null.This string representation is used as subsection name in the Git config file that stores the external ID.
-
toString
-
equals
-
hashCode
@Memoized public int hashCode() -
from
public static com.google.common.collect.ImmutableSet<ExternalId.Key> from(Collection<ExternalId> extIds)
-