Constructs a new {@code AbstractSelectionKey}.sinceAndroid 1.0 super();
super();
Cancels this key. A key that has been canceled is no longer valid. Calling this method on an already canceled key does nothing. sinceAndroid 1.0 if (isValid) { isValid = false; ((AbstractSelector) selector()).cancel(this); }
A key that has been canceled is no longer valid. Calling this method on an already canceled key does nothing.
if (isValid) { isValid = false; ((AbstractSelector) selector()).cancel(this); }
Indicates whether this key is valid. A key is valid as long as it has not been canceled.return{@code true} if this key has not been canceled, {@code false} otherwise.sinceAndroid 1.0 return isValid;
return isValid;