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)key
public int getAsInt(java.lang.String key)
Copyright © 2009-2019 Google. All Rights Reserved.