Package com.isode.dsapi.profile
Class IDValue
java.lang.Object
com.isode.dsapi.profile.IDValue
Class for managing a unique id value
- Since:
- 17.0
- Author:
- ac
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the id if it is set, if it is not set generates one and then returns it.Gets the id if it is set.boolean
Indicates if the ID value is equal to the given value.boolean
isIDSet()
Indicates if an id value is set.
-
Constructor Details
-
Method Details
-
getIDIfSet
Gets the id if it is set. -
getIDAndGenerate
Gets the id if it is set, if it is not set generates one and then returns it.- Returns:
- The set id, or a newly generated id if it was not set.
-
isIDSet
public boolean isIDSet()Indicates if an id value is set.- Returns:
true
if an id value is set.
-
idEquals
Indicates if the ID value is equal to the given value.- Parameters:
value
- A value to check against, ifnull
value will befalse
.- Returns:
true
if id is set and equals the given value, otherwisefalse
-