Class LimitInfo

java.lang.Object
com.itextpdf.licensing.base.info.LimitInfo

public class LimitInfo extends Object
Represents a limit info.
  • Constructor Details

    • LimitInfo

      public LimitInfo (LimitInfoType limitInfoType, long totalVolume, long remainingVolume)
      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

      public LimitInfoType 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

      public boolean equals (Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object