Package org.opennms.core.utils
Class Owner
- java.lang.Object
-
- org.opennms.core.utils.Owner
-
- All Implemented Interfaces:
Comparable<Owner>
public class Owner extends Object implements Comparable<Owner>
Owner class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description Owner(String roleid, String supervisor)
Constructor for Owner.Owner(String roleid, String user, int schedIndex)
Constructor for Owner.Owner(String roleid, String user, int schedIndex, int timeIndex)
Constructor for Owner.Owner(Owner base, int timeIndex)
Constructor for Owner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Owner
addTimeIndex(int timeIndex)
int
compareTo(Owner o)
compareToboolean
equals(Object obj)
String
getRoleid()
getRoleidint
getSchedIndex()
getSchedIndexint
getTimeIndex()
getTimeIndexString
getUser()
getUserint
hashCode()
hashCodeboolean
isSupervisor()
isSupervisorString
toString()
toString
-
-
-
Constructor Detail
-
Owner
public Owner(Owner base, int timeIndex)
Constructor for Owner.
- Parameters:
base
- aOwner
object.timeIndex
- a int.
-
-
Method Detail
-
isSupervisor
public boolean isSupervisor()
isSupervisor
- Returns:
- a boolean.
-
getSchedIndex
public int getSchedIndex()
getSchedIndex
- Returns:
- a int.
-
getTimeIndex
public int getTimeIndex()
getTimeIndex
- Returns:
- a int.
-
addTimeIndex
public Owner addTimeIndex(int timeIndex)
-
compareTo
public int compareTo(Owner o)
compareTo
- Specified by:
compareTo
in interfaceComparable<Owner>
- Parameters:
o
- aOwner
object.- Returns:
- a int.
-
-