Class Address

  • All Implemented Interfaces:
    one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>, one.xingyi.core.sdk.IXingYiResource, IAddress

    public class Address
    extends java.lang.Object
    implements one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>, IAddress
    • Constructor Summary

      Constructors 
      Constructor Description
      Address​(java.lang.String line1, java.lang.String line2, java.lang.String postcode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String line1()  
      java.lang.String line2()  
      java.lang.String postcode()  
      <J> J toJson​(one.xingyi.core.marshelling.JsonWriter<J> jsonWriter, one.xingyi.core.marshelling.ContextForJson context)  
      java.lang.String toString()  
      Address withline1​(java.lang.String line1)  
      Address withline2​(java.lang.String line2)  
      Address withpostcode​(java.lang.String postcode)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface one.xingyi.core.marshelling.HasJson

        toJsonString
    • Constructor Detail

      • Address

        public Address​(java.lang.String line1,
                       java.lang.String line2,
                       java.lang.String postcode)
    • Method Detail

      • line1

        public java.lang.String line1()
        Specified by:
        line1 in interface IAddress
      • line2

        public java.lang.String line2()
        Specified by:
        line2 in interface IAddress
      • postcode

        public java.lang.String postcode()
        Specified by:
        postcode in interface IAddress
      • toJson

        public <J> J toJson​(one.xingyi.core.marshelling.JsonWriter<J> jsonWriter,
                            one.xingyi.core.marshelling.ContextForJson context)
        Specified by:
        toJson in interface one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object