Class MapFileFilter

  • All Implemented Interfaces:
    java.io.FileFilter, net.sf.japi.util.filter.file.FileFilter, net.sf.japi.util.filter.Filter<java.io.File>

    public class MapFileFilter
    extends net.sf.japi.util.filter.file.EndingFileFilter
    Swing FileFilter implementation that filters map files.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.sf.japi.util.filter.Filter

        net.sf.japi.util.filter.Filter.Factory
    • Constructor Summary

      Constructors 
      Constructor Description
      MapFileFilter​(boolean acceptDirectories, @NotNull java.lang.String description, @NotNull java.lang.String... endings)
      Creates a new instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(@NotNull java.io.File pathName)  
      static boolean isPerformingRealChecks()
      Get whether to actually perform real checks or just file endings.
      static void setPerformingRealChecks​(boolean performingRealChecks)
      Set whether to actually perform real checks or just file endings.
      • Methods inherited from class net.sf.japi.util.filter.file.EndingFileFilter

        getDescription
      • Methods inherited from class java.lang.Object

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

      • MapFileFilter

        public MapFileFilter​(boolean acceptDirectories,
                             @NotNull
                             @NotNull java.lang.String description,
                             @NotNull
                             @NotNull java.lang.String... endings)
        Creates a new instance.
        Parameters:
        acceptDirectories - whether the file filter should accept directories
        description - the description to use for Swing
        endings - the endings to accept, including their period
    • Method Detail

      • setPerformingRealChecks

        public static void setPerformingRealChecks​(boolean performingRealChecks)
        Set whether to actually perform real checks or just file endings.
        Parameters:
        performingRealChecks - true for performing real checks, false to compare only file endings
      • isPerformingRealChecks

        public static boolean isPerformingRealChecks()
        Get whether to actually perform real checks or just file endings.
        Returns:
        true for performing real checks, false to compare only file endings
      • accept

        public boolean accept​(@NotNull
                              @NotNull java.io.File pathName)
        Specified by:
        accept in interface java.io.FileFilter
        Specified by:
        accept in interface net.sf.japi.util.filter.Filter<java.io.File>
        Overrides:
        accept in class net.sf.japi.util.filter.file.EndingFileFilter
        No Inspection:
        ParameterNameDiffersFromOverriddenParameter