| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: <0 ifaPath sorts before bPath; 0 if the paths
are the same; >0 if aPath sorts after bPath.first path buffer. The range aPath, int [aPos, aEnd) is used.index into aPos, int aPath where the first path starts.1 past last index of aEnd, int aPath.mode of the first file. Trees are sorted as though
aMode, byte[] aPath[aEnd] == '/', even if aEnd does not exist.second path buffer. The range bPath, int [bPos, bEnd) is used.index into bPos, int bPath where the second path starts.1 past last index of bEnd, int bPath.mode of the second file. Trees are sorted as though
bMode)bPath[bEnd] == '/', even if bEnd does not exist.Compare two paths according to Git path sort ordering rules. |
| public static int | Returns: <0 if no duplicate name could exist; 0 if the paths have the same name; >0 otherbPath should still be checked by caller.first path buffer. The range aPath, int [aPos, aEnd) is used.index into aPos, int aPath where the first path starts.1 past last index of aEnd, byte[] aPath.second path buffer. The range bPath, int [bPos, bEnd) is used.index into bPos, int bPath where the second path starts.1 past last index of bEnd, int bPath.mode of the second file. Trees are sorted as though
bMode)bPath[bEnd] == '/', even if bEnd does not exist.Compare two paths, checking for identical name. |
| private static int | coreCompare(byte[] aPath, int aPos, int aEnd, int aMode, byte[] bPath, int bPos, int bEnd, int bMode)
|
| public static boolean | Returns: true if folder is a directory prefix of
path, or is equal to path, false
otherwisea git path for a directory, without trailing slash folder, String a git path path)Determines whether a git path |
| private static int | |
| public static String | Returns: null ifpath == null; path after removing a
trailing '/'.input path to potentially remove trailing path)'/' from.Remove trailing |
| Paths | back to summary |
|---|---|
| private Paths() | |
| compare | back to summary |
|---|---|
| public static int compare(byte[] aPath, int aPos, int aEnd, int aMode, byte[] bPath, int bPos, int bEnd, int bMode) Compare two paths according to Git path sort ordering rules.
| |
| compareSameName | back to summary |
|---|---|
| public static int compareSameName(byte[] aPath, int aPos, int aEnd, byte[] bPath, int bPos, int bEnd, int bMode) Compare two paths, checking for identical name.
Unlike
Returns
Returns
Returns
| |
| coreCompare | back to summary |
|---|---|
| private static int coreCompare(byte[] aPath, int aPos, int aEnd, int aMode, byte[] bPath, int bPos, int bEnd, int bMode) | |
| isEqualOrPrefix | back to summary |
|---|---|
| public static boolean isEqualOrPrefix(String folder, String path) Determines whether a git path | |
| lastPathChar | back to summary |
|---|---|
| private static int lastPathChar(int mode) | |
| stripTrailingSeparator | back to summary |
|---|---|
| public static String stripTrailingSeparator(String path) Remove trailing | |