Package org.apache.commons.vfs2.cache
Class FileSystemAndNameKey
java.lang.Object
org.apache.commons.vfs2.cache.FileSystemAndNameKey
- All Implemented Interfaces:
Comparable<FileSystemAndNameKey>
Key for various cache implementations.
It compares the fileSystem (by hashCode) and the file name.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FileName
The FileNameprivate final FileSystem
The FileSystemprivate final int
hashcode to identify this object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FileSystemAndNameKey other) (package private) FileName
(package private) FileSystem
-
Field Details
-
fileSystem
The FileSystem -
fileName
The FileName -
fileSystemId
private final int fileSystemIdhashcode to identify this object
-
-
Constructor Details
-
FileSystemAndNameKey
FileSystemAndNameKey(FileSystem fileSystem, FileName fileName)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FileSystemAndNameKey>
-
getFileSystem
FileSystem getFileSystem() -
getFileName
FileName getFileName()
-