AR System Java API

com.bmc.arsys.api
Class EscalationInterval

java.lang.Object
  extended by com.bmc.arsys.api.EscalationInterval
All Implemented Interfaces:
EscalationTimeCriteria, Serializable, Cloneable

public class EscalationInterval
extends Object
implements EscalationTimeCriteria, Cloneable, Serializable

EscalationInterval is an escalation time criteria which defines the criteria as a time interval (number of seconds)

See Also:
Serialized Form

Field Summary
static int MAX_DAYS
          The maximum number of days that can be specified without overflowing integer maximum value.
 
Constructor Summary
EscalationInterval()
           
EscalationInterval(long value)
           
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 int getDays()
           
 int getHours()
           
 int getMinutes()
           
 long getValue()
           
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setDays(int days)
           
 void setHours(int hours)
           
 void setMinutes(int minutes)
           
 void setValue(long value)
           
 String toString()
          Returns a string description of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_DAYS

public static final int MAX_DAYS
The maximum number of days that can be specified without overflowing integer maximum value.

See Also:
Constant Field Values
Constructor Detail

EscalationInterval

public EscalationInterval()

EscalationInterval

public EscalationInterval(long value)
Method Detail

getDays

public int getDays()

setDays

public void setDays(int days)

getHours

public int getHours()

setHours

public void setHours(int hours)

getMinutes

public int getMinutes()

setMinutes

public void setMinutes(int minutes)

getValue

public long getValue()

setValue

public void setValue(long value)

clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

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

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

toString

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

Overrides:
toString in class Object

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.