Class RequestUpdates



  • public class RequestUpdates
    extends java.lang.Object
    Represents updates (new comments) to Requests that exist in Zendesk
    • Constructor Summary

      Constructors 
      Constructor and Description
      RequestUpdates(java.util.Map<java.lang.String,java.lang.Integer> requestsWithUpdates)
      Creates an instance with the request updates
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      java.util.Map<java.lang.String,java.lang.Integer> getRequestsWithUpdates()
      Gets the map of request IDs to their count of updates.
      int getUpdateCount()
      Gets the number of updates to requests
      int hashCode() 
      boolean hasUpdates()
      Checks if there are any request with updates
      • Methods inherited from class java.lang.Object

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

      • RequestUpdates

        public RequestUpdates(java.util.Map<java.lang.String,java.lang.Integer> requestsWithUpdates)
        Creates an instance with the request updates
        Parameters:
        requestsWithUpdates - The requests with updates
    • Method Detail

      • hasUpdates

        public boolean hasUpdates()
        Checks if there are any request with updates
        Returns:
        true if any requests have updates
      • getUpdateCount

        public int getUpdateCount()
        Gets the number of updates to requests
        Returns:
        the number of updates to requests
      • getRequestsWithUpdates

        public java.util.Map<java.lang.String,java.lang.Integer> getRequestsWithUpdates()
        Gets the map of request IDs to their count of updates. If a request ID has no updates (ie, no new comments), it will not appear in the map.
        Returns:
        the map of request IDs to their count of updates
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object