Class LocationImpl

java.lang.Object
com.commercetools.history.models.common.LocationImpl
All Implemented Interfaces:
Location, io.vrap.rmf.base.client.ModelBase

public class LocationImpl extends Object implements Location, io.vrap.rmf.base.client.ModelBase

Shape of the value for addLocation and removeLocation actions

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Two-digit country code as per ISO 3166-1 alpha-2.
     
    int
     
    void
    setCountry(String country)
    Two-digit country code as per ISO 3166-1 alpha-2.
    void
    set state
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.history.models.common.Location

    withLocation

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • LocationImpl

      public LocationImpl()
      create empty instance
  • Method Details

    • getCountry

      public String getCountry()

      Two-digit country code as per ISO 3166-1 alpha-2.

      Specified by:
      getCountry in interface Location
      Returns:
      country
    • getState

      public String getState()
      Specified by:
      getState in interface Location
      Returns:
      state
    • setCountry

      public void setCountry(String country)
      Description copied from interface: Location

      Two-digit country code as per ISO 3166-1 alpha-2.

      Specified by:
      setCountry in interface Location
      Parameters:
      country - value to be set
    • setState

      public void setState(String state)
      Description copied from interface: Location
      set state
      Specified by:
      setState in interface Location
      Parameters:
      state - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object