Package org.opennms.core.utils
Class OwnedInterval
- java.lang.Object
-
- org.opennms.core.utils.TimeInterval
-
- org.opennms.core.utils.OwnedInterval
-
- All Implemented Interfaces:
Comparable<TimeInterval>
public class OwnedInterval extends TimeInterval
OwnedInterval class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description OwnedInterval(Date start, Date end)
Constructor for OwnedInterval.OwnedInterval(List<Owner> owners, Date start, Date end)
Constructor for OwnedInterval.OwnedInterval(List<Owner> owners, TimeInterval interval)
Constructor for OwnedInterval.OwnedInterval(OwnedInterval owned)
Constructor for OwnedInterval.OwnedInterval(Owner owner, Date start, Date end)
Constructor for OwnedInterval.OwnedInterval(Owner owner, TimeInterval interval)
Constructor for OwnedInterval.OwnedInterval(TimeInterval interval)
Constructor for OwnedInterval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOwner(Owner owner)
addOwnervoid
addOwners(List<Owner> owners)
addOwnersboolean
equals(Object o)
List<Owner>
getOwners()
getOwnersint
hashCode()
hashCodeboolean
isOwned()
isOwnedboolean
isOwner(Owner owner)
isOwnervoid
removeOwner(Owner owner)
removeOwnervoid
removeOwners(List<Owner> owners)
removeOwnersString
toString()
toString-
Methods inherited from class org.opennms.core.utils.TimeInterval
comparesTo, compareTo, follows, getEnd, getStart, overlaps, preceeds
-
-
-
-
Constructor Detail
-
OwnedInterval
public OwnedInterval(OwnedInterval owned)
Constructor for OwnedInterval.
- Parameters:
owned
- aOwnedInterval
object.
-
OwnedInterval
public OwnedInterval(TimeInterval interval)
Constructor for OwnedInterval.
- Parameters:
interval
- aTimeInterval
object.
-
OwnedInterval
public OwnedInterval(Owner owner, TimeInterval interval)
Constructor for OwnedInterval.
- Parameters:
owner
- aOwner
object.interval
- aTimeInterval
object.
-
OwnedInterval
public OwnedInterval(List<Owner> owners, TimeInterval interval)
Constructor for OwnedInterval.
- Parameters:
owners
- aList
object.interval
- aTimeInterval
object.
-
OwnedInterval
public OwnedInterval(Owner owner, Date start, Date end)
Constructor for OwnedInterval.
-
-
Method Detail
-
removeOwners
public void removeOwners(List<Owner> owners)
removeOwners
- Parameters:
owners
- aList
object.
-
isOwner
public boolean isOwner(Owner owner)
isOwner
- Parameters:
owner
- aOwner
object.- Returns:
- a boolean.
-
isOwned
public boolean isOwned()
isOwned
- Returns:
- a boolean.
-
toString
public String toString()
toString
- Overrides:
toString
in classTimeInterval
- Returns:
- a
String
object.
-
hashCode
public int hashCode()
hashCode
- Overrides:
hashCode
in classTimeInterval
- Returns:
- a int.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classTimeInterval
-
-