Class GlobalSelector<T>


  • @Deprecated
    public final class GlobalSelector<T>
    extends Selector<T>
    Deprecated.
    Use Contextual instead.
    A selector which always returns one global instance.
    Author:
    David M. Lloyd
    • Constructor Detail

      • GlobalSelector

        public GlobalSelector​(T instance)
        Deprecated.
        Construct a new instance.
        Parameters:
        instance - the constant instance to always return from this selector
    • Method Detail

      • get

        public T get()
        Deprecated.
        Description copied from class: Selector
        Get the currently relevant object, or null if there is none.
        Specified by:
        get in class Selector<T>
        Returns:
        the currently relevant object