Home | History | Annotate | Download | only in hash

Lines Matching defs:string

319    * Creates a {@code HashCode} from a hexadecimal ({@code base 16}) encoded string. The string must
328 public static HashCode fromString(String string) {
329 checkArgument(string.length() >= 2,
330 "input string (%s) must have at least 2 characters", string);
331 checkArgument(string.length() % 2 == 0,
332 "input string (%s) must have an even number of characters", string);
334 byte[] bytes = new byte[string.length() / 2];
335 for (int i = 0; i < string.length(); i += 2) {
336 int ch1 = decode(string.charAt(i)) << 4;
337 int ch2 = decode(string.charAt(i + 1));
384 * Returns a string containing each byte of {@link #asBytes}, in order, as a two-digit unsigned
392 * <p>To create a {@code HashCode} from its string representation, see {@link #fromString}.
395 public final String toString() {