Class SubtypeFilter

  • All Implemented Interfaces:
    Filter<Annotatable>

    public class SubtypeFilter
    extends Object
    implements Filter<Annotatable>
    Filter implementation that accept (annotatable) items of a given subtype.
    Since:
    3.16
    Author:
    nicklas
    • Field Detail

      • itemType

        private final Item itemType
    • Constructor Detail

      • SubtypeFilter

        public SubtypeFilter​(ItemSubtype subtype)
    • Method Detail

      • evaluate

        public boolean evaluate​(Annotatable item)
        Description copied from interface: Filter
        Evaluate if the given object should pass the filter or not.
        Specified by:
        evaluate in interface Filter<Annotatable>
        Parameters:
        item - The object to evaluate
        Returns:
        TRUE if the object passes the filter, FALSE otherwise