FileDocCategorySizeDatePackage
DrmConstraintInfo.javaAPI DocAndroid 1.5 API2069Wed May 06 22:42:00 BST 2009android.drm.mobile1

DrmConstraintInfo

public class DrmConstraintInfo extends Object
This class provides interfaces to access the DRM constraint.

Fields Summary
private int
count
The constraint of count.
private long
startDate
The constraint of start date.
private long
endDate
The constraint of end date.
private long
interval
The constraint of interval.
Constructors Summary
DrmConstraintInfo()
Construct the DrmConstraint.

        count = -1;
        startDate = -1;
        endDate = -1;
        interval = -1;
    
Methods Summary
public intgetCount()
Get the count constraint.

return
the count or -1 if no limit.

        return count;
    
public java.util.DategetEndDate()
Get the end date constraint.

return
the end date or null if no limit.

        if (endDate == -1)
            return null;

        return new Date(endDate);
    
public longgetInterval()
Get the Interval constraint.

return
the interval or -1 if no limit.

        return interval;
    
public java.util.DategetStartDate()
Get the start date constraint.

return
the start date or null if no limit.

        if (startDate == -1)
            return null;

        return new Date(startDate);