Module org.jline

Class NopStyleSource

    • Constructor Detail

      • NopStyleSource

        public NopStyleSource()
    • Method Detail

      • get

        @Nullable
        public String get​(String group,
                          String name)
        Always returns null.
        Specified by:
        get in interface StyleSource
        Parameters:
        group - the group
        name - the style name
        Returns:
        the style
      • set

        public void set​(String group,
                        String name,
                        String style)
        Non-operation.
        Specified by:
        set in interface StyleSource
        Parameters:
        group - the group
        name - the style name
        style - the style to set
      • remove

        public void remove​(String group)
        Non-operation.
        Specified by:
        remove in interface StyleSource
        Parameters:
        group - the group
      • remove

        public void remove​(String group,
                           String name)
        Non-operation.
        Specified by:
        remove in interface StyleSource
        Parameters:
        group - the group
        name - the style name to remove
      • clear

        public void clear()
        Non-operation.
        Specified by:
        clear in interface StyleSource
      • styles

        public Map<String,​String> styles​(String group)
        Always returns empty map.
        Specified by:
        styles in interface StyleSource
        Parameters:
        group - the style group
        Returns:
        Immutable map.