Class MultiFilter

All Implemented Interfaces:
Iterable<Filter>, Collection<Filter>, List<Filter>, SequencedCollection<Filter>, ListModel<Filter>, Buildable, Proxy, ListModelJavaList<Filter>, ListModelJavaListMutable<Filter>
Direct Known Subclasses:
AnyFilter, EveryFilter, MultiFilter.MultiFilter$Impl

@Generated("org.javagi.JavaGI") public abstract class MultiFilter extends Filter implements ListModel<Filter>, Buildable, ListModelJavaListMutable<Filter>
Base class for filters that combine multiple filters.
  • Constructor Details

    • MultiFilter

      public MultiFilter(MemorySegment address)
      Create a MultiFilter instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • MultiFilter

      public MultiFilter()
      Create a new MultiFilter.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the MultiFilter class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected MultiFilter asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Filter
      Returns:
      the instance as if it were its parent type
    • append

      public void append(Filter filter)
      Adds a filter.
      Specified by:
      append in interface ListModelJavaListMutable<Filter>
      Parameters:
      filter - a filter to add
    • removeAt

      public void removeAt(int position)

      Removes a filter.

      If position is larger than the number of filters, nothing happens.

      Specified by:
      removeAt in interface ListModelJavaListMutable<Filter>
      Parameters:
      position - position of filter to remove