public final class ParserUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HASH_OFFSET
HASH_OFFSET = 37.
|
static int |
HASH_SEED
HASH_SEED = 17.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Object obj1,
Object obj2) |
static int |
hashCode(int seed,
boolean b) |
static int |
hashCode(int seed,
int hashcode) |
static int |
hashCode(int seed,
Object obj) |
static String |
trimBy(StringBuilder s,
int left,
int right)
Remove the given number of chars from start and end.
|
static String |
trimUrl(StringBuilder s)
Helper that removes the leading "url(", the trailing ")"
and surrounding quotes from the given string builder.
|
public static final int HASH_SEED
public static final int HASH_OFFSET
public static int hashCode(int seed,
int hashcode)
seed - the seed to be usedhashcode - the hashcode to be used as inputpublic static int hashCode(int seed,
boolean b)
seed - the seed to be usedb - the boolean to be used as inputpublic static int hashCode(int seed,
Object obj)
seed - the seed to be usedobj - the object to be used as inputpublic static boolean equals(Object obj1, Object obj2)
obj1 - the first objectobj2 - the second objectpublic static String trimBy(StringBuilder s, int left, int right)
s - the StringBuilderleft - no of chars to be removed from startright - no of chars to be removed from endpublic static String trimUrl(StringBuilder s)
s - the StringBuilderCopyright © 2025 HtmlUnit. All rights reserved.