public class Header<T extends java.io.Serializable>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Header.Type
Used to help differentiate the different header types
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected Header.Type |
type |
protected T |
value |
Constructor and Description |
---|
Header(java.lang.String name,
T value)
Create a new Header
|
protected final java.lang.String name
protected final T extends java.io.Serializable value
protected final Header.Type type
public Header(java.lang.String name, T value)
name
- Name of the header, may not be nullvalue
- Value of the header, may not be nullpublic java.lang.String getName()
public T getValue()
public Header.Type getType()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object