Class SimpleMaskingCallback

    • Constructor Detail

      • SimpleMaskingCallback

        public SimpleMaskingCallback​(Character mask)
    • Method Detail

      • display

        public String display​(String line)
        Description copied from interface: MaskingCallback
        Transforms the line before it is displayed so that some parts can be hidden.
        Specified by:
        display in interface MaskingCallback
        Parameters:
        line - the current line being edited
        Returns:
        the modified line to display
      • history

        public String history​(String line)
        Description copied from interface: MaskingCallback
        Transforms the line before storing in the history. If the return value is empty or null, it will not be saved in the history.
        Specified by:
        history in interface MaskingCallback
        Parameters:
        line - the line to be added to history
        Returns:
        the modified line