Package com.itextpdf.licensing.base.info
Class LimitInfo
java.lang.Object
com.itextpdf.licensing.base.info.LimitInfo
Represents a limit info.
-
Constructor Summary
ConstructorsConstructorDescriptionLimitInfo
(LimitInfoType limitInfoType, long totalVolume, long remainingVolume) Only for internal usage. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns limit info type.long
Returns remaining limit for VOLUME type, 0 for FORBIDDEN type, -1 for UNLIMITED type.long
Returns total limit for VOLUME type, 0 for FORBIDDEN type, -1 for UNLIMITED type.int
hashCode()
-
Constructor Details
-
LimitInfo
Only for internal usage. Creates a LimitInfo with the specified type, total volume and remaining volume. Default total and remaining volume for FORBIDDEN type should be 0. Default total and remaining volume for UNLIMITED type should be -1.- Parameters:
-
limitInfoType
- type of event limit info -
totalVolume
- total limit volume -
remainingVolume
- remaining limit volume
-
-
Method Details
-
getLimitType
Returns limit info type.- Returns:
- limit info type
-
getTotalVolume
public long getTotalVolume()Returns total limit for VOLUME type, 0 for FORBIDDEN type, -1 for UNLIMITED type.- Returns:
- total volume number
-
getRemainingVolume
public long getRemainingVolume()Returns remaining limit for VOLUME type, 0 for FORBIDDEN type, -1 for UNLIMITED type.- Returns:
- remaining volume number
-
equals
-
hashCode
public int hashCode()
-