Class Status.Smart

  • All Implemented Interfaces:
    JsonReadable, Status
    Enclosing interface:
    Status

    @Immutable
    @Loggable(1)
    public static final class Status.Smart
    extends Object
    implements Status
    Smart Status with extra features.
    Since:
    0.24
    Version:
    $Id: dc09e47d3c682cb3b814319dd3f6653153de402b $
    Author:
    Chris Rebert (github@chrisrebert.com)
    • Constructor Detail

      • Smart

        public Smart​(Status stat)
        Public ctor.
        Parameters:
        stat - Status
    • Method Detail

      • targetUrl

        public com.google.common.base.Optional<String> targetUrl()
                                                          throws IOException
        Get URL.
        Returns:
        URL as string.
        Throws:
        IOException - If there is an I/O problem
      • description

        public String description()
                           throws IOException
        Get description.
        Returns:
        Description as string.
        Throws:
        IOException - If there is an I/O problem
      • context

        public String context()
                       throws IOException
        Get context.
        Returns:
        Context as string
        Throws:
        IOException - If there is an I/O problem
      • createdAt

        public Date createdAt()
                       throws IOException
        When this commit status was created.
        Returns:
        Date of creation
        Throws:
        IOException - If there is any I/O problem
      • updatedAt

        public Date updatedAt()
                       throws IOException
        When this commit status was updated.
        Returns:
        Date of update
        Throws:
        IOException - If there is any I/O problem
      • creator

        public User creator()
                     throws IOException
        Get its creator.
        Returns:
        Creator of the commit status
        Throws:
        IOException - If there is any I/O problem
      • identifier

        public int identifier()
        Description copied from interface: Status
        Get its ID number.
        Specified by:
        identifier in interface Status
        Returns:
        ID number
      • url

        public String url()
        Description copied from interface: Status
        Get its URL.
        Specified by:
        url in interface Status
        Returns:
        URL
      • commit

        public Commit commit()
        Description copied from interface: Status
        Associated commit.
        Specified by:
        commit in interface Status
        Returns:
        Commit
      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem