|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelOption<T>
An option that may be applied to a channel.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Determine whether this channel option is equal to another. |
java.lang.String |
getName()
Get the name of this option. |
java.lang.Class<T> |
getType()
Get the concrete type of the value for this option. |
int |
hashCode()
The hash code for this option. |
java.lang.String |
toString()
Return a human-readable string form of this option. |
T |
valueOf(java.lang.String string)
Get the value of the given string as the value type of this channel option, if possible. |
Method Detail |
---|
java.lang.String getName()
java.lang.Class<T> getType()
boolean equals(java.lang.Object other)
ChannelOption
, false
will be returned. Two options are equal when they have the same name and are applicable to the same type.
equals
in class java.lang.Object
other
- the other channel option
true
if they are equalint hashCode()
31 * name.hashCode() + type.hashCode()
.
hashCode
in class java.lang.Object
java.lang.String toString()
toString
in class java.lang.Object
T valueOf(java.lang.String string) throws java.lang.IllegalArgumentException
string
- the string representation of the value
java.lang.IllegalArgumentException
- if the value is not valid for this option
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |