Class DecrementIntValueToKeyModel
java.lang.Object
io.cryptolens.models.RequestModel
io.cryptolens.models.ProductAndKeyModel
io.cryptolens.models.DecrementIntValueToKeyModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
This is the lower bound that will be enforced on the decrement operation.boolean
If set to true, it will be possible to specify a lower bound.long
The unique object id for the data object.int
The constant int value that should be subtracted 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
ConstructorsConstructorDescriptionDecrementIntValueToKeyModel
(int productId, String key, long id, int intValue, boolean enableBound, int bound) DecrementIntValueToKeyModel
(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 value that should be subtracted to the current IntValue of the data object. For example, if this value is set to 5 and the old IntValue is 11, then the new IntValue will be the old one minus 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 a lower bound. For example, if you set the Bound parameter (below) to 0, you will be able to decrement the int value until you reach zero (inclusive). Once the lower bound is reached, an error will be thrown. -
Bound
public int BoundThis is the lower bound that will be enforced on the decrement operation. It will only be enforced if EnableBound is set to true. Please read the description above.
-
-
Constructor Details
-
DecrementIntValueToKeyModel
public DecrementIntValueToKeyModel(int productId, String key, long id, int intValue, boolean enableBound, int bound) -
DecrementIntValueToKeyModel
-