Class EasyPostResource

java.lang.Object
com.easypost.model.EasyPostResource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Override the Equals method, convert objects to Json strings for comparison.
    int
    Override the hashCode method because it is needed when overriding equals().
    Pretty print the JSON representation of the object.
    Returns a string representation of the object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EasyPostResource

      public EasyPostResource()
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      String of the object.
    • prettyPrint

      public String prettyPrint()
      Pretty print the JSON representation of the object.
      Returns:
      the JSON representation of the object.
    • hashCode

      public int hashCode()
      Override the hashCode method because it is needed when overriding equals().
      Overrides:
      hashCode in class Object
      Returns:
      The hashcode of current object.
    • equals

      public boolean equals(Object object)
      Override the Equals method, convert objects to Json strings for comparison.
      Overrides:
      equals in class Object
      Parameters:
      object - Object of any class.
      Returns:
      If two objects have the same properties.