public abstract class ByteBasedPName extends PName
| Modifier and Type | Field and Description |
|---|---|
protected int |
mHash
Since the hash is calculated different from the way eventual
String's hash will be (bit faster, not significantly worse
hashing uniformness), we need to store that hash here.
|
_localName, _namespaceBinding, _prefix, _prefixedName| Modifier | Constructor and Description |
|---|---|
protected |
ByteBasedPName(String pname,
String prefix,
String ln,
int hash) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
equals(int[] quads,
int qlen) |
abstract boolean |
equals(int quad1,
int quad2) |
abstract int |
getFirstQuad() |
abstract int |
getQuad(int index) |
int |
hashCode()
Whether we should use internal hash, or the hash of prefixed
name string itself is an open question.
|
abstract boolean |
hashEquals(int h,
int[] quads,
int qlen) |
abstract boolean |
hashEquals(int h,
int quad1,
int quad2) |
abstract int |
sizeInQuads() |
boundEquals, boundEquals, boundHashCode, boundHashCode, constructQName, constructQName, createBoundName, equals, getLastQuad, getLocalName, getNsBinding, getNsUri, getPrefix, getPrefixedName, hasPrefix, hasPrefixedName, isBound, needsBinding, toString, unboundEquals, unboundHashCodeprotected final int mHash
public abstract int getFirstQuad()
getFirstQuad in class PNamepublic abstract int sizeInQuads()
sizeInQuads in class PNamepublic abstract boolean equals(int quad1,
int quad2)
public abstract boolean equals(int[] quads,
int qlen)
public abstract boolean hashEquals(int h,
int quad1,
int quad2)
public abstract boolean hashEquals(int h,
int[] quads,
int qlen)
Copyright © 2019 FasterXML. All rights reserved.