|
XNIO version 1.2.0.GA | ||||||||
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(Object other)
Determine whether this channel option is equal to another. |
String |
getName()
Get the name of this option. |
Class<T> |
getType()
Get the concrete type of the value for this option. |
int |
hashCode()
The hash code for this option. |
String |
toString()
Return a human-readable string form of this option. |
T |
valueOf(String string)
Get the value of the given string as the value type of this channel option, if possible. |
Method Detail |
---|
String getName()
Class<T> getType()
boolean equals(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 Object
other
- the other channel option
true
if they are equalint hashCode()
31 * name.hashCode() + type.hashCode()
.
hashCode
in class Object
String toString()
toString
in class Object
T valueOf(String string) throws IllegalArgumentException
string
- the string representation of the value
IllegalArgumentException
- if the value is not valid for this option
|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |