Interface Eligible

All Known Subinterfaces:
Channel, Channel.Default, IOSubchannel, MailChannel, Self, SocketIOChannel, Subchannel
All Known Implementing Classes:
Accepted, ActionEvent, Attached, ClassChannel, ClientConnected, Close, Closed, CompletionEvent, Component, ComponentCollector, ComponentCollector, ComponentProvider, ComponentProxy, ComponentVertex, ConfigurationStore, ConfigurationUpdate, Connected, ConnectError, ConnectionManager, ConnectionManager.Connection, DataInput, Detached, DiscardSession, Error, Event, EventBase, FileChanged, FileOpened, FileStorage, FileSystemWatcher, FreeMarkerRequestHandler, HalfClosed, Handler.NoChannel, Handler.NoEvent, HandlingError, HostUnresolved, HttpConnected, HttpConnector, HttpServer, InitialConfiguration, InitialPreferences, InMemorySessionManager, Input, InputStreamMonitor, IOError, IOEvent, IOSubchannel.DefaultIOSubchannel, JsonConfigurationStore, JsonParsingError, KeyValueStoreData, KeyValueStoreQuery, KeyValueStoreUpdate, LanguageSelector, LinkedIOSubchannel, MailConnectionManager, MailConnectionManager.AbstractMailChannel, MailFoldersUpdated, MailMonitor, MailMonitor.MonitorChannel, MailMonitorOpened, MailSender, MailSender.SenderChannel, MessageReceived, NamedChannel, NamedEvent, NightConfigStore, NioDispatcher, NioRegistration, NioRegistration.Completed, Opened, OpenFile, Opening, OpenMailConnection, OpenMailMonitor, OpenMailSender, OpenSocketConnection, Output, PreferencesStore, ProcessExited, ProcessManager, ProcessManager.ProcessChannel, ProcessStarted, ProtocolSwitchAccepted, Purge, PurgeTerminator, Ready, 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, SocketConnectionManager, SocketConnectionManager.SocketChannelImpl, SocketConnector, SocketServer, SslCodec, Start, Started, StartProcess, StartProcessError, StaticContentDispatcher, Stop, StreamFile, Subchannel.DefaultSubchannel, TomlConfigurationStore, UpdateMailFolders, Upgraded, WatchFile, 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