public class Xid extends 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 |
|---|---|
String |
get(String key)
Gets the string that should be substituted for
key. |
int |
getAsInt(String key)
Returns the underlying integer representation of the given key.
|
public Xid()
public Xid(Xid.HashFunction hasher)
public String get(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(String key)
Copyright © 2009-2016 Google. All Rights Reserved.