Class Address

    • Constructor Detail

      • Address

        public Address()
        Constructs a new empty instance.
      • Address

        protected Address​(boolean noInit)
        Constructs a new empty instance.
      • Address

        public Address​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • Address

        public Address​(Address src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getAddress1

        public String getAddress1()
      • getAddress2

        public String getAddress2()
      • getAddress3

        public String getAddress3()
      • getCity

        public String getCity()
      • getCountry

        public String getCountry()
      • getPhoneNumber

        public String getPhoneNumber()
      • getState

        public String getState()
      • getZip

        public String getZip()
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullAddress1

        public boolean isNotNullAddress1()
        Checks whether the 'address1' field is set and is not null
      • isNotNullAddress2

        public boolean isNotNullAddress2()
        Checks whether the 'address2' field is set and is not null
      • isNotNullAddress3

        public boolean isNotNullAddress3()
        Checks whether the 'address3' field is set and is not null
      • isNotNullCity

        public boolean isNotNullCity()
        Checks whether the 'city' field is set and is not null
      • isNotNullCountry

        public boolean isNotNullCountry()
        Checks whether the 'country' field is set and is not null
      • isNotNullPhoneNumber

        public boolean isNotNullPhoneNumber()
        Checks whether the 'phoneNumber' field is set and is not null
      • isNotNullState

        public boolean isNotNullState()
        Checks whether the 'state' field is set and is not null
      • isNotNullZip

        public boolean isNotNullZip()
        Checks whether the 'zip' field is set and is not null
      • hasAddress1

        public boolean hasAddress1()
        Checks whether the 'address1' field has been set, however the value could be null
      • hasAddress2

        public boolean hasAddress2()
        Checks whether the 'address2' field has been set, however the value could be null
      • hasAddress3

        public boolean hasAddress3()
        Checks whether the 'address3' field has been set, however the value could be null
      • hasCity

        public boolean hasCity()
        Checks whether the 'city' field has been set, however the value could be null
      • hasCountry

        public boolean hasCountry()
        Checks whether the 'country' field has been set, however the value could be null
      • hasPhoneNumber

        public boolean hasPhoneNumber()
        Checks whether the 'phoneNumber' field has been set, however the value could be null
      • hasState

        public boolean hasState()
        Checks whether the 'state' field has been set, however the value could be null
      • hasZip

        public boolean hasZip()
        Checks whether the 'zip' field has been set, however the value could be null
      • setAddress1

        public Address setAddress1​(String address1)
        Sets the field 'address1'.
      • setAddress2

        public Address setAddress2​(String address2)
        Sets the field 'address2'.
      • setAddress3

        public Address setAddress3​(String address3)
        Sets the field 'address3'.
      • setCity

        public Address setCity​(String city)
        Sets the field 'city'.
      • setCountry

        public Address setCountry​(String country)
        Sets the field 'country'.
      • setPhoneNumber

        public Address setPhoneNumber​(String phoneNumber)
        Sets the field 'phoneNumber'.
      • setState

        public Address setState​(String state)
        Sets the field 'state'.
      • setZip

        public Address setZip​(String zip)
        Sets the field 'zip'.
      • clearAddress1

        public void clearAddress1()
        Clears the 'address1' field, the 'has' method for this field will now return false
      • clearAddress2

        public void clearAddress2()
        Clears the 'address2' field, the 'has' method for this field will now return false
      • clearAddress3

        public void clearAddress3()
        Clears the 'address3' field, the 'has' method for this field will now return false
      • clearCity

        public void clearCity()
        Clears the 'city' field, the 'has' method for this field will now return false
      • clearCountry

        public void clearCountry()
        Clears the 'country' field, the 'has' method for this field will now return false
      • clearPhoneNumber

        public void clearPhoneNumber()
        Clears the 'phoneNumber' field, the 'has' method for this field will now return false
      • clearState

        public void clearState()
        Clears the 'state' field, the 'has' method for this field will now return false
      • clearZip

        public void clearZip()
        Clears the 'zip' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public Address copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Address src)
        Copy all the changed fields from the given source to this instance.