|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.ide.net.URLComparator
public final class URLComparator
The URLComparator is an implementation of the Comparator interface that can be used for ordering URLs. The ordering is performed based on the Object.toString() representations of the URLs.
| Constructor Summary | |
|---|---|
URLComparator()Creates a URLComparator that sorts URLs by their string form in a case-sensitive way. |
|
URLComparator(boolean dirsBeforeFiles)Creates a URLComparator that sorts URLs by their string form using the case-sensitivity of the local file system. |
|
URLComparator(boolean dirsBeforeFiles, boolean caseSensitive)Creates a URLComparator that sorts URLs by their string form using the specified case-sensitivity. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1, java.lang.Object o2) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public URLComparator()
URLComparator that sorts URLs by their string form in a case-sensitive way.public URLComparator(boolean dirsBeforeFiles)
URLComparator that sorts URLs by their string form using the case-sensitivity of the local file system.
dirsBeforeFiles - If true, the URLComparator will sort directories before files. Otherwise, directories and files will be sorted together.
public URLComparator(boolean dirsBeforeFiles,
boolean caseSensitive)
URLComparator that sorts URLs by their string form using the specified case-sensitivity.
dirsBeforeFiles - If true, the URLComparator will sort directories before files. Otherwise, directories and files will be sorted together.caseSensitive - If true, the URLComparator will sort URLs in a case-sensitive way. Otherwise sorting is case-insensitive.| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||