Class SingleLoaderFilter

  • All Implemented Interfaces:
    java.util.function.Predicate<Loader>

    public class SingleLoaderFilter
    extends java.lang.Object
    implements java.util.function.Predicate<Loader>
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleLoaderFilter​(java.lang.Class<? extends Loader> single)
      Create a new single loader filter from the given loader class.
      SingleLoaderFilter​(java.lang.Class<? extends Loader> single, java.util.List<Pair<java.lang.String,​java.lang.String>> loaderArgs)
      Create a new single loader filter from the given loader class and loader command line argument list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Pair<java.lang.String,​java.lang.String>> getLoaderArgs()
      Gets the loader arguments tied to the loader in this filter.
      boolean test​(Loader loader)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • SingleLoaderFilter

        public SingleLoaderFilter​(java.lang.Class<? extends Loader> single)
        Create a new single loader filter from the given loader class.
        Parameters:
        single - The loader class used for this filter.
      • SingleLoaderFilter

        public SingleLoaderFilter​(java.lang.Class<? extends Loader> single,
                                  java.util.List<Pair<java.lang.String,​java.lang.String>> loaderArgs)
        Create a new single loader filter from the given loader class and loader command line argument list.
        Parameters:
        single - The loader class used for this filter.
        loaderArgs - The loader arguments used for this filter. Could be null if there are not arguments.
    • Method Detail

      • getLoaderArgs

        public java.util.List<Pair<java.lang.String,​java.lang.String>> getLoaderArgs()
        Gets the loader arguments tied to the loader in this filter.
        Returns:
        The loader arguments tied to the loader in this filter. Could be null if there are no arguments.
      • test

        public boolean test​(Loader loader)
        Specified by:
        test in interface java.util.function.Predicate<Loader>