Package org.apache.commons.vfs2.provider
Class FileSystemKey
- java.lang.Object
-
- org.apache.commons.vfs2.provider.FileSystemKey
-
- All Implemented Interfaces:
java.lang.Comparable<FileSystemKey>
class FileSystemKey extends java.lang.Object implements java.lang.Comparable<FileSystemKey>
Identifies a file system.
-
-
Field Summary
Fields Modifier and Type Field Description private static FileSystemOptions
EMPTY_OPTIONS
private FileSystemOptions
fileSystemOptions
Never null as the ctor sets it to EMPTY_OPTIONS if input is null.private java.lang.Comparable<?>
key
-
Constructor Summary
Constructors Constructor Description FileSystemKey(java.lang.Comparable<?> key, FileSystemOptions fileSystemOptions)
Creates the FS key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FileSystemKey o)
java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY_OPTIONS
private static final FileSystemOptions EMPTY_OPTIONS
-
key
private final java.lang.Comparable<?> key
-
fileSystemOptions
private final FileSystemOptions fileSystemOptions
Never null as the ctor sets it to EMPTY_OPTIONS if input is null.
-
-
Constructor Detail
-
FileSystemKey
FileSystemKey(java.lang.Comparable<?> key, FileSystemOptions fileSystemOptions)
Creates the FS key.- Parameters:
key
- must implement Comparable, and must be self-comparable.fileSystemOptions
- the required options, may be null.
-
-
Method Detail
-
compareTo
public int compareTo(FileSystemKey o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FileSystemKey>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-