|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.japtproxy.packages.AbstractRepoPackageVersionComparator
org.japtproxy.packages.debian.DebianPackageVersionComparator
public class DebianPackageVersionComparator
The VersionComparator is responsible for comparing debian package versions. This is required for sorting a list of debian packages from the same program with different versions.
| Field Summary |
|---|
| Fields inherited from class org.japtproxy.packages.AbstractRepoPackageVersionComparator |
|---|
LOG, NON_ASCII_OFFSET |
| Constructor Summary | |
|---|---|
DebianPackageVersionComparator()
|
|
| Method Summary | |
|---|---|
protected int |
order(char[] ca,
int pos)
Returns the order for a single character. |
| Methods inherited from class org.japtproxy.packages.AbstractRepoPackageVersionComparator |
|---|
compare, setRepoPackageFactory, strCompare |
| 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 DebianPackageVersionComparator()
| Method Detail |
|---|
protected int order(char[] ca,
int pos)
pos >=
ca.length, then the order is the same as for digits.
order in class AbstractRepoPackageVersionComparatorca - the character arraypos - the position in the character array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||