@ThreadSafe public final class DiffKeyParse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DiffKeyParse.MalformedKey
Thrown when a malformed difference key is detected.
|
Constructor and Description |
---|
DiffKeyParse(int a,
int aR,
int b,
int bR)
Constructs a DiffKeyParse from obsolete, named revision variables.
|
DiffKeyParse(List<Integer> aPathW,
List<Integer> bPathW,
int _revisionSeries)
Constructs a DiffKeyParse by taking ownership of two path lists.
|
DiffKeyParse(String _key)
Parses a difference key and constructs a DiffKeyParse.
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
aPath()
The revision path for the first (a) draft revision.
|
List<Integer> |
bPath()
The revision path for the second (b) draft revision.
|
String |
key()
The difference key in string form.
|
DiffKeyParse |
newReverseParse()
Constructs the reverse of this parse, in which all components of a-draft and
b-draft are interchanged.
|
int |
revisionSeries()
The pollwiki revision series.
|
String |
toString()
Returns the difference key.
|
public DiffKeyParse(int a, int aR, int b, int bR)
a
- the aPath revision number at index zero.aR
- the aPath revision number at index one, or -1 if there is none.b
- the bPath revision number at index zero.bR
- the bPath revision number at index one, or -1 if there is none.public DiffKeyParse(List<Integer> aPathW, List<Integer> bPathW, int _revisionSeries) throws DiffKeyParse.MalformedKey
DiffKeyParse.MalformedKey
aPath()
,
bPath()
,
revisionSeries()
public DiffKeyParse(String _key) throws DiffKeyParse.MalformedKey
DiffKeyParse.MalformedKey
key()
public DiffKeyParse newReverseParse()
public final int revisionSeries()
PollwikiVS.revisionSeries()
public final String toString()