SelectorRegistry

public class SelectorRegistry implements Iterable<Pair<String, ISelector>>(source)

Registry holding registered selectors.

Properties

Link copied to clipboard
public final static SelectorRegistry INSTANCE

Functions

Link copied to clipboard
public final Boolean contains(String selectorKey)

Checks if a selector has been registered for the given key.

Link copied to clipboard
public final ISelector get(String selectorKey)

Gets the selector instance associated with the given key.

Link copied to clipboard
Link copied to clipboard
public final static Unit register(String selectorKey, ISelector selector)

Registers the given selector with the given key or throws an exception, if there was a selector or load selector registered for the given key.

Link copied to clipboard
public final static Boolean tryRegister(String selectorKey, ISelector selector)

Tries to register the given selector with the given key.

Inherited functions

Link copied to clipboard
public Unit forEach(Consumer<? super Pair<String, ISelector>> p0)
Link copied to clipboard