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 OwneraddTimeIndex(int timeIndex)intcompareTo(Owner o)compareTobooleanequals(Object obj)StringgetRoleid()getRoleidintgetSchedIndex()getSchedIndexintgetTimeIndex()getTimeIndexStringgetUser()getUserinthashCode()hashCodebooleanisSupervisor()isSupervisorStringtoString()toString
-
-
-
Constructor Detail
-
Owner
public Owner(Owner base, int timeIndex)
Constructor for Owner.
- Parameters:
base- aOwnerobject.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:
compareToin interfaceComparable<Owner>- Parameters:
o- aOwnerobject.- Returns:
- a int.
-
-