public class Xid
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Xid.HashFunction
Strategy for selecting the underlying hash code function to be used by Xid.
|
| Constructor and Description |
|---|
Xid() |
Xid(Xid.HashFunction hasher) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String key)
Gets the string that should be substituted for
key. |
int |
getAsInt(java.lang.String key)
Returns the underlying integer representation of the given key.
|
public Xid()
public Xid(Xid.HashFunction hasher)
public java.lang.String get(java.lang.String key)
key. The same value will be
consistently returned for any particular key.key - the text to be replaced (never null)keypublic int getAsInt(java.lang.String key)
Copyright © 2009-2020 Google. All Rights Reserved.