Record Class PWSSDirectoryNavUtil
java.lang.Object
java.lang.Record
org.pwss.util.PWSSDirectoryNavUtil
The PWSSDirectoryNavUtil class provides utility methods to work with
directories.
This class is designed to operate in a stateless manner and only provides
static methods for directory
navigation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPWSSDirectoryNavUtilrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.GetSelectedFolderWithoutSubFolders(File selectedFolder) Retrieves the contents of the selected folder without including subfolders.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PWSSDirectoryNavUtil
public PWSSDirectoryNavUtil()Creates an instance of aPWSSDirectoryNavUtilrecord class.
-
-
Method Details
-
GetSelectedFolderWithoutSubFolders
Retrieves the contents of the selected folder without including subfolders.- Parameters:
selectedFolder- The folder whose contents need to be retrieved- Returns:
- A list of File objects representing the immediate contents of the selected folder
- Throws:
NullPointerException- if the selected folder is null or its contents cannot be listed
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-