Class XBERoot

  • All Implemented Interfaces:
    java.io.Serializable, XBMBase, XBMRoot, org.exbin.xbup.core.catalog.base.XBCBase, org.exbin.xbup.core.catalog.base.XBCRoot

    @ParametersAreNonnullByDefault
    public class XBERoot
    extends java.lang.Object
    implements XBMRoot, java.io.Serializable
    Root node database entity.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Long id  
    • Constructor Summary

      Constructors 
      Constructor Description
      XBERoot()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Determines whether another object is equal to this Item.
      long getId()  
      java.util.Optional<java.util.Date> getLastUpdate()  
      XBENode getNode()  
      java.util.Optional<java.lang.String> getUrl()  
      int hashCode()
      Returns a hash code value for the object.
      void setLastUpdate​(java.util.Date lastUpdate)
      Sets last update for this catalog root.
      void setNode​(org.exbin.xbup.core.catalog.base.XBCNode node)
      Sets root node for this catalog root.
      void setUrl​(java.lang.String url)
      Sets URL for this catalog root.
      java.lang.String toString()
      Returns a string representation of the object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        protected java.lang.Long id
    • Constructor Detail

      • XBERoot

        public XBERoot()
    • Method Detail

      • getId

        public long getId()
        Specified by:
        getId in interface org.exbin.xbup.core.catalog.base.XBCBase
      • hashCode

        public int hashCode()
        Returns a hash code value for the object. This implementation computes a hash code value based on the id fields in this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for this object.
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object object)
        Determines whether another object is equal to this Item. The result is true if and only if the argument is not null and is a Item object that has the same id field values as this object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - the reference object with which to compare
        Returns:
        true if this object is the same as the argument; false otherwise.
      • toString

        public java.lang.String toString()
        Returns a string representation of the object. This implementation constructs that representation based on the id fields.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of the object
      • getNode

        @Nonnull
        public XBENode getNode()
        Specified by:
        getNode in interface org.exbin.xbup.core.catalog.base.XBCRoot
      • setNode

        public void setNode​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Description copied from interface: XBMRoot
        Sets root node for this catalog root.
        Specified by:
        setNode in interface XBMRoot
        Parameters:
        node - node
      • getUrl

        @Nonnull
        public java.util.Optional<java.lang.String> getUrl()
        Specified by:
        getUrl in interface org.exbin.xbup.core.catalog.base.XBCRoot
      • setUrl

        public void setUrl​(java.lang.String url)
        Description copied from interface: XBMRoot
        Sets URL for this catalog root.
        Specified by:
        setUrl in interface XBMRoot
        Parameters:
        url - the URL string or empty string for build-in catalog
      • getLastUpdate

        @Nonnull
        public java.util.Optional<java.util.Date> getLastUpdate()
        Specified by:
        getLastUpdate in interface org.exbin.xbup.core.catalog.base.XBCRoot
      • setLastUpdate

        public void setLastUpdate​(@Nullable
                                  java.util.Date lastUpdate)
        Description copied from interface: XBMRoot
        Sets last update for this catalog root.
        Specified by:
        setLastUpdate in interface XBMRoot
        Parameters:
        lastUpdate - date