public class SpecialHashtable
extends java.util.Hashtable
Tag.NULLVALUE
is translated to null
and
Tag.NOTHING
is translated to ""
.
This is done for backwards compatibility, users are expecting a HashTable,
but Tag.toHTML needs to know when there is no attribute value (<Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NOTHING
Special value for an empty attribute value.
|
static java.lang.String |
NULLVALUE
Special value for a null attribute value.
|
static java.lang.String |
TAGNAME
Special key for the tag name.
|
Constructor and Description |
---|
SpecialHashtable()
Constructs a new, empty hashtable with a default initial capacity (11)
and load factor, which is 0.75.
|
SpecialHashtable(int initialCapacity)
Constructs a new, empty hashtable with the specified initial capacity
and default load factor, which is 0.75.
|
SpecialHashtable(int initialCapacity,
float loadFactor)
Constructs a new, empty hashtable with the specified initial capacity
and the specified load factor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the specified key is mapped in this hashtable.
|
java.lang.Object |
getRaw(java.lang.Object key)
Returns the raw (untranslated) value to which the specified key is
mapped in this hashtable.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public static final java.lang.String TAGNAME
public static final java.lang.String NULLVALUE
public static final java.lang.String NOTHING
public SpecialHashtable()
public SpecialHashtable(int initialCapacity)
public SpecialHashtable(int initialCapacity, float loadFactor)
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class java.util.Hashtable
null
if the attribute is a stand-alone attribute.public java.lang.Object getRaw(java.lang.Object key)
HTML Parser is an open source library released under LGPL.