Class DomainOwnerInfo
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.DomainOwnerInfo
-
- All Implemented Interfaces:
java.lang.Comparable
public class DomainOwnerInfo extends java.lang.Object implements java.lang.Comparable
This class manages owner information about a domain. Immutable.
-
-
Constructor Summary
Constructors Constructor Description DomainOwnerInfo(java.util.Date d, java.lang.String info)
Create new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object other)
Compares two DomainOwnerInfo objects using dates.java.util.Date
getDate()
Gets the date.java.lang.String
getInfo()
Gets the owner information.
-
-
-
Constructor Detail
-
DomainOwnerInfo
public DomainOwnerInfo(java.util.Date d, java.lang.String info)
Create new instance.- Parameters:
d
- the date the owner information is registeredinfo
- the owner information
-
-
Method Detail
-
getInfo
public java.lang.String getInfo()
Gets the owner information.- Returns:
- the owner information
-
getDate
public java.util.Date getDate()
Gets the date.- Returns:
- the date
-
compareTo
public int compareTo(java.lang.Object other)
Compares two DomainOwnerInfo objects using dates.- Specified by:
compareTo
in interfacejava.lang.Comparable
- Parameters:
other
- is a non-null DomainOwnerInfo.- Throws:
java.lang.ClassCastException
- ifother
is not an DomainOwnerInfo object.- See Also:
Comparable.compareTo(java.lang.Object)
-
-