|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.xnio.channels.PlainChannelOption<T>
public class PlainChannelOption<T>
A plain channel option implementation. Use to easily define channel options.
| Constructor Summary | |
|---|---|
PlainChannelOption(java.lang.String name,
java.lang.Class<T> type)
Basic constructor. |
|
| Method Summary | ||
|---|---|---|
static
|
createOption(java.lang.String name,
java.lang.Class<T> type)
Convenience factory method. |
|
boolean |
equals(java.lang.Object o)
Check equality with another object. |
|
java.lang.String |
getName()
Get the option name. |
|
java.lang.Class<T> |
getType()
Get option type. |
|
int |
hashCode()
Calculate the hashCode. |
|
java.lang.String |
toString()
Get a simple string representation 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PlainChannelOption(java.lang.String name,
java.lang.Class<T> type)
name - the option name; must not be nulltype - the option type; must not be null| Method Detail |
|---|
public static <T> ChannelOption<T> createOption(java.lang.String name,
java.lang.Class<T> type)
name - the option nametype - the value type
public boolean equals(java.lang.Object o)
equals in interface ChannelOption<T>equals in class java.lang.Objecto - the other object
true if the the other object is equal to this onepublic int hashCode()
ChannelOption.hashCode().
hashCode in interface ChannelOption<T>hashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface ChannelOption<T>public java.lang.Class<T> getType()
getType in interface ChannelOption<T>public java.lang.String toString()
toString in interface ChannelOption<T>toString in class java.lang.Object
public T valueOf(java.lang.String string)
throws java.lang.IllegalArgumentException
valueOf in interface ChannelOption<T>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 | ||||||||