@PublicApi public final class TieredIdentity extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TieredIdentity.LocalityTier
Class representing a locality tier, e.g.
|
Constructor and Description |
---|
TieredIdentity(List<TieredIdentity.LocalityTier> tiers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TieredIdentity.LocalityTier |
getTier(int i) |
List<TieredIdentity.LocalityTier> |
getTiers() |
int |
hashCode() |
boolean |
topTiersMatch(TieredIdentity other) |
String |
toString() |
public TieredIdentity(List<TieredIdentity.LocalityTier> tiers)
tiers
- the tiers of the tier identitypublic List<TieredIdentity.LocalityTier> getTiers()
public TieredIdentity.LocalityTier getTier(int i)
i
- a tier indexpublic boolean topTiersMatch(TieredIdentity other)
other
- a tiered identity to compare toCopyright © 2023. All Rights Reserved.