private static class FastFindCache.TenantKey
extends java.lang.Object
tenantInstances map. Based on this key (tenant id, database id),
an instance of FastFindCache is retrieved/created.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
databaseId
The database id of this key.
|
private int |
hashCode
The hash code of this key.
|
private java.lang.String |
tenantId
The tenant id of this key.
|
| Modifier | Constructor and Description |
|---|---|
private |
TenantKey(java.lang.String tenantId,
java.lang.String databaseId)
Constructor that takes both the tenant id and the database id, and computes the hash code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicate whether this object instance is equivalent to the given instance, based on
the content of both.
|
int |
hashCode()
Return the hash code computed for this object instance.
|
private final java.lang.String tenantId
private final java.lang.String databaseId
private final int hashCode
private TenantKey(java.lang.String tenantId,
java.lang.String databaseId)
tenantId - The id of the tenant.databaseId - The id of the database.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue if equivalent, false otherwise.