final class InternalAttribute extends AbstractReferenceCounted implements InterfaceHttpData
InterfaceHttpData.HttpDataType
Modifier and Type | Field and Description |
---|---|
private java.nio.charset.Charset |
charset |
private int |
size |
private java.util.List<ByteBuf> |
value |
Constructor and Description |
---|
InternalAttribute(java.nio.charset.Charset charset) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.String value) |
void |
addValue(java.lang.String value,
int rank) |
int |
compareTo(InterfaceHttpData o) |
int |
compareTo(InternalAttribute o) |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
boolean |
equals(java.lang.Object o) |
InterfaceHttpData.HttpDataType |
getHttpDataType() |
java.lang.String |
getName()
Returns the name of this InterfaceHttpData.
|
int |
hashCode() |
InterfaceHttpData |
retain()
Increases the reference count by
1 . |
InterfaceHttpData |
retain(int increment)
Increases the reference count by the specified
increment . |
void |
setValue(java.lang.String value,
int rank) |
int |
size() |
ByteBuf |
toByteBuf() |
java.lang.String |
toString() |
InterfaceHttpData |
touch()
Records the current access location of this object for debugging purposes.
|
InterfaceHttpData |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
refCnt, release, release, setRefCnt
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
refCnt, release, release
private final java.util.List<ByteBuf> value
private final java.nio.charset.Charset charset
private int size
public InterfaceHttpData.HttpDataType getHttpDataType()
getHttpDataType
in interface InterfaceHttpData
public void addValue(java.lang.String value)
public void addValue(java.lang.String value, int rank)
public void setValue(java.lang.String value, int rank)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(InterfaceHttpData o)
compareTo
in interface java.lang.Comparable<InterfaceHttpData>
public int compareTo(InternalAttribute o)
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
public ByteBuf toByteBuf()
public java.lang.String getName()
InterfaceHttpData
getName
in interface InterfaceHttpData
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()
is equals 0.deallocate
in class AbstractReferenceCounted
public InterfaceHttpData retain()
ReferenceCounted
1
.retain
in interface InterfaceHttpData
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
public InterfaceHttpData retain(int increment)
ReferenceCounted
increment
.retain
in interface InterfaceHttpData
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
public InterfaceHttpData touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface InterfaceHttpData
touch
in interface ReferenceCounted
touch
in class AbstractReferenceCounted
public InterfaceHttpData touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface InterfaceHttpData
touch
in interface ReferenceCounted