Class VisibleLabelFilter

  • All Implemented Interfaces:
    com.atlassian.core.util.filter.Filter, com.google.common.base.Predicate<Label>, Predicate<Label>

    public class VisibleLabelFilter
    extends Object
    implements com.atlassian.core.util.filter.Filter, com.google.common.base.Predicate<Label>
    This filters a list of label objects, returning those labels from the list that the specified user should see.
    • Constructor Detail

      • VisibleLabelFilter

        public VisibleLabelFilter()
      • VisibleLabelFilter

        public VisibleLabelFilter​(String user)
    • Method Detail

      • apply

        public boolean apply​(@NonNull Label input)
        Specified by:
        apply in interface com.google.common.base.Predicate<Label>
      • isIncluded

        public boolean isIncluded​(Object object)
        Specified by:
        isIncluded in interface com.atlassian.core.util.filter.Filter