Channel should implement Comparable<Channel>

This commit is contained in:
Trustin Lee 2008-12-01 06:08:52 +00:00
parent 7d37a2f78b
commit 22b23938b8
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ import org.jboss.netty.util.TimeBasedUuidGenerator;
* @version $Rev$, $Date$
*
*/
public abstract class AbstractChannel implements Channel, Comparable<Channel> {
public abstract class AbstractChannel implements Channel {
private final UUID id = TimeBasedUuidGenerator.generate();
private final Channel parent;

View File

@ -57,7 +57,7 @@ import java.util.UUID;
* @apiviz.composedOf org.jboss.netty.channel.ChannelConfig
* @apiviz.composedOf org.jboss.netty.channel.ChannelPipeline
*/
public interface Channel {
public interface Channel extends Comparable<Channel>{
/**
* The {@link #getInterestOps() interestOps} value which tells that the