Package org.exoplatform.clouddrive.cmis
Class CMISAPI.ChangeToken
- java.lang.Object
-
- org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken
-
- Direct Known Subclasses:
CMISAPI.TimeChangeToken
- Enclosing class:
- CMISAPI
protected class CMISAPI.ChangeToken extends Object
The Class ChangeToken.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChangeToken(String token)Instantiates a new change token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompareTo(CMISAPI.ChangeToken other)Compare to.booleanequals(CMISAPI.ChangeToken other)Compare this token with the given and returntrueif they are equal,falseotherwise.StringgetString()String representation of change log token.booleanisAfter(CMISAPI.ChangeToken other)Returntrueif this event is after the given in time.booleanisBefore(CMISAPI.ChangeToken other)Returntrueif this event is before the given in time.booleanisEmpty()Returntrueif this token doesn't describe any change token, thus it equals nonullor no token value.StringtoString()
-
-
-
Constructor Detail
-
ChangeToken
protected ChangeToken(String token)
Instantiates a new change token.- Parameters:
token- the token
-
-
Method Detail
-
equals
public boolean equals(CMISAPI.ChangeToken other)
Compare this token with the given and returntrueif they are equal,falseotherwise. Empty tokens aren't equal.- Parameters:
other-CMISAPI.ChangeToken- Returns:
- boolean
trueif tokens equal,falseotherwise
-
isAfter
public boolean isAfter(CMISAPI.ChangeToken other)
Returntrueif this event is after the given in time.- Parameters:
other-CMISAPI.ChangeToken- Returns:
- boolean
-
isBefore
public boolean isBefore(CMISAPI.ChangeToken other)
Returntrueif this event is before the given in time.- Parameters:
other-CMISAPI.ChangeToken- Returns:
- boolean
-
isEmpty
public boolean isEmpty()
Returntrueif this token doesn't describe any change token, thus it equals nonullor no token value.- Returns:
- boolean
-
getString
public String getString()
String representation of change log token.- Returns:
- the token string
-
compareTo
protected int compareTo(CMISAPI.ChangeToken other)
Compare to.- Parameters:
other- the other- Returns:
- the int
-
-