Interface Eligible

All Known Subinterfaces:
Channel, Channel.Default, IOSubchannel, Self, Subchannel, TcpChannel
All Known Implementing Classes:
Accepted, ActionEvent, Attached, ClassChannel, ClientConnected, Close, Closed, CompletionEvent, Component, ComponentCollector, ComponentCollector, ComponentProvider, ComponentProxy, ComponentVertex, ConfigurationStore, ConfigurationUpdate, Connected, ConnectError, Detached, DiscardSession, Error, Event, EventBase, FileOpened, FileStorage, FreeMarkerRequestHandler, HalfClosed, Handler.NoChannel, Handler.NoEvent, HandlingError, HostUnresolved, HttpConnected, HttpConnector, HttpServer, InitialConfiguration, InitialPreferences, InMemorySessionManager, Input, InputStreamMonitor, IOError, IOEvent, IOSubchannel.DefaultIOSubchannel, JsonConfigurationStore, KeyValueStoreData, KeyValueStoreQuery, KeyValueStoreUpdate, LanguageSelector, LinkedIOSubchannel, MailComponent, MessageReceived, NamedChannel, NamedEvent, NightConfigStore, NioDispatcher, NioRegistration, NioRegistration.Completed, Opened, OpenFile, Opening, OpenTcpConnection, Output, PreferencesStore, ProtocolSwitchAccepted, Purge, PurgeTerminator, Ready, ReceivedMailMessage, Request, Request.In, Request.In.Completed, Request.In.Connect, Request.In.Delete, Request.In.Get, Request.In.Head, Request.In.Options, Request.In.Post, Request.In.Put, Request.In.Trace, Request.Out, Request.Out.Connect, Request.Out.Delete, Request.Out.Get, Request.Out.Head, Request.Out.Options, Request.Out.Post, Request.Out.Put, Request.Out.Trace, Response, SaveInput, SaveOutput, SendMailMessage, SessionManager, SimpleMailMonitor, SimpleMailSender, SslCodec, Start, Started, StaticContentDispatcher, Stop, StreamFile, Subchannel.DefaultSubchannel, TcpConnectionManager, TcpConnectionManager.TcpChannelImpl, TcpConnector, TcpServer, TomlConfigurationStore, Upgraded, WebSocketClose, YamlConfigurationStore

public interface Eligible
This interface provides a mechanism for matching objects, using a filter on the object’s “kind” as criterion.

How the kind is represented depends completely on the class that implements this interface.

Every instance of a class that implement this interface must provide a default criterion (filter) that accepts the instance (though, of course, not only this particular instance). Formally: for every instance “obj” of Eligible, the expression obj.isEligibleFor(obj.getDefaultCrtiterion()) must return true.

The default criterion can therefore be interpreted as the representation of the kind of the object.

  • Method Details

    • isEligibleFor

      boolean isEligibleFor(Object criterion)
      Returns true if this Eligible is met by the provided criterion.
      Parameters:
      criterion - the criterion
      Returns:
      true if this meets the criterion
    • defaultCriterion

      Returns a sample criterion that this Eligible meets.
      Returns:
      the criterion