Class NamedFilterConfig

    • Constructor Detail

      • NamedFilterConfig

        public NamedFilterConfig​(@NotNull
                                 @NotNull NamedFilter owner)
        Creates a new instance.
        Parameters:
        owner - the filter this filter config belongs to
    • Method Detail

      • isInverted

        public boolean isInverted()
        Returns whether the filter should match if all sub-filters match or if at least one sub-filter does not match.
        Returns:
        whether the filter matches if all sub-filters match ( true) or if any does not match (false)
      • setInverted

        public void setInverted​(boolean inverted)
        Sets whether the filter should match if all sub-filters match or if at least one sub-filter does not match.
        Parameters:
        inverted - whether the filter matches if all sub-filters match (true) or if any does not match (false)
      • getConfig

        @NotNull
        public @NotNull FilterConfig<?,​?> getConfig​(@NotNull
                                                          @NotNull java.lang.String name)
        Returns the FilterConfig for a sub-filter.
        Parameters:
        name - the sub-filter's name
        Returns:
        the sub-filter's filter config
      • isSubFilterEnabled

        public boolean isSubFilterEnabled​(@NotNull
                                          @NotNull java.lang.String name)
        Returns whether a sub-filter is enabled.
        Parameters:
        name - the sub-filter's name
        Returns:
        whether the sub-filter is enabled
      • setSubFilterEnabled

        public void setSubFilterEnabled​(@NotNull
                                        @NotNull java.lang.String name,
                                        boolean enabled)
        Sets whether a sub-filter is enabled.
        Parameters:
        name - the sub-filter's name
        enabled - whether the sub-filter is enabled
      • getEntries

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​FilterConfig<?,​?>> getEntries()
        Returns a Map containing all configurations of sub-filters.
        Returns:
        the map