Class IncrementIntValueToKeyModel
java.lang.Object
io.cryptolens.models.RequestModel
io.cryptolens.models.ProductAndKeyModel
io.cryptolens.models.IncrementIntValueToKeyModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
This is the upper bound that will be enforced on the increment operation.boolean
If set to true, it will be possible to specify an upper bound.long
The unique object id for the data object.int
The constant int (non-negative) value that should be added to the current IntValue of the data object.Fields inherited from class io.cryptolens.models.ProductAndKeyModel
Key, ProductId
Fields inherited from class io.cryptolens.models.RequestModel
LicenseServerUrl
-
Constructor Summary
ConstructorsConstructorDescriptionIncrementIntValueToKeyModel
(int productId, String key, long id, int intValue, boolean enableBound, int bound) IncrementIntValueToKeyModel
(int productId, String key, String name, int intValue, boolean enableBound, int bound) -
Method Summary
-
Field Details
-
Id
public long IdThe unique object id for the data object. -
Name
-
IntValue
public int IntValueThe constant int (non-negative) value that should be added to the current IntValue of the data object. For example, if this value is set to 5 and the old IntValue is 1, then the new IntValue will be the old one plus 5, i.e. 6. Note, if you would set this value to -5 instead, the same result would be achieved. -
EnableBound
public boolean EnableBoundIf set to true, it will be possible to specify an upper bound. For example, if you set the Bound parameter (below) to 10, you will be able to increment the int value until you reach ten (inclusive). Once the upper bound is reached, an error will be thrown. -
Bound
public int BoundThis is the upper bound that will be enforced on the increment operation. It will only be enforced if EnableBound is set to true. Please read the description above.
-
-
Constructor Details
-
IncrementIntValueToKeyModel
public IncrementIntValueToKeyModel(int productId, String key, long id, int intValue, boolean enableBound, int bound) -
IncrementIntValueToKeyModel
-