Class TogglzSwitchable<T>

    • Field Detail

      • delegate

        protected T delegate
    • Constructor Detail

      • TogglzSwitchable

        public TogglzSwitchable​(FeatureManager featureManager,
                                Feature feature,
                                T active,
                                T inactive)
    • Method Detail

      • checkTogglzState

        protected final void checkTogglzState()
        Updates the internal delegate selection against the Feature state.
      • update

        public static void update​(Object o)
        Manually update the internal delegation of a TogglzSwitchable against its Feature state. This is intended for use with passive switching.
        Parameters:
        o - The object to update. If null or not a TogglzSwitchable, no action is taken.