AR System Java API

com.bmc.arsys.api
Class LicenseValidInfo

java.lang.Object
  extended by com.bmc.arsys.api.LicenseValidInfo
All Implemented Interfaces:
Serializable

public class LicenseValidInfo
extends Object
implements Serializable

The LicenseValidInfo class represents validation information for a license.

See Also:
Serialized Form

Constructor Summary
LicenseValidInfo()
          Default constructor
LicenseValidInfo(int numLicenses, boolean isDemo, Date expireDate, String tokenList)
          Constructs new LicenseValidInfo object that accepts string.
 
Method Summary
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 Date getExpireDate()
          Returns expiration date of license.
 int getNumLicenses()
          Returns number of active licenses.
 String getTokenList()
          Returns additional information for the license.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 boolean isDemo()
          Returns TRUE if the license is a Demo license.
 String toString()
          Returns a string description of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LicenseValidInfo

public LicenseValidInfo()
Default constructor


LicenseValidInfo

public LicenseValidInfo(int numLicenses,
                        boolean isDemo,
                        Date expireDate,
                        String tokenList)
Constructs new LicenseValidInfo object that accepts string.

Parameters:
numLicenses - Number of license
isDemo - Boolean if license is Demo
expireDate - Expiration date of license
tokenList - Additional license data
Method Detail

getExpireDate

public Date getExpireDate()
Returns expiration date of license.


getNumLicenses

public int getNumLicenses()
Returns number of active licenses.


isDemo

public boolean isDemo()
Returns TRUE if the license is a Demo license.


getTokenList

public String getTokenList()
Returns additional information for the license.


toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class Object

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
returns the hash code for this instance

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class Object
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.