Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DomainOwnerInfo

        public DomainOwnerInfo​(java.util.Date d,
                               java.lang.String info)
        Create new instance.
        Parameters:
        d - the date the owner information is registered
        info - 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 interface java.lang.Comparable
        Parameters:
        other - is a non-null DomainOwnerInfo.
        Throws:
        java.lang.ClassCastException - if other is not an DomainOwnerInfo object.
        See Also:
        Comparable.compareTo(java.lang.Object)