Class ReloadRequirements


  • public final class ReloadRequirements
    extends java.lang.Object
    Holds methods to create standard predicates to select IResourceTypes that should be reloaded.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Predicate<IResourceType> all()
      Creates a reload predicate accepting all resource types.
      static java.util.function.Predicate<IResourceType> include​(IResourceType... inclusion)
      Creates an inclusive reload predicate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReloadRequirements

        public ReloadRequirements()
    • Method Detail

      • all

        public static java.util.function.Predicate<IResourceType> all()
        Creates a reload predicate accepting all resource types.
        Returns:
        a predicate accepting all types
      • include

        public static java.util.function.Predicate<IResourceType> include​(IResourceType... inclusion)
        Creates an inclusive reload predicate. Only given resource types will be loaded along with this.
        Parameters:
        inclusion - the set of resource types to be included in the reload
        Returns:
        an inclusion predicate based on the given types