Class Country

java.lang.Object
dev.vality.damsel.domain.Country
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Country>, org.apache.thrift.TBase<Country,Country._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.19.0)", date="2024-08-02") public class Country extends Object implements org.apache.thrift.TBase<Country,Country._Fields>, Serializable, Cloneable, Comparable<Country>
See Also:
  • Field Details

  • Constructor Details

    • Country

      public Country()
    • Country

      public Country(String name)
    • Country

      public Country(Country other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public Country deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<Country,Country._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<Country,Country._Fields>
    • getName

      public String getName()
    • setName

      public Country setName(String name)
    • unsetName

      public void unsetName()
    • isSetName

      public boolean isSetName()
      Returns true if field name is set (has been assigned a value) and false otherwise
    • setNameIsSet

      public void setNameIsSet(boolean value)
    • getTradeBlocsSize

      public int getTradeBlocsSize()
    • getTradeBlocsIterator

      public Iterator<TradeBlocRef> getTradeBlocsIterator()
    • addToTradeBlocs

      public void addToTradeBlocs(TradeBlocRef elem)
    • getTradeBlocs

      public Set<TradeBlocRef> getTradeBlocs()
    • setTradeBlocs

      public Country setTradeBlocs(Set<TradeBlocRef> trade_blocs)
    • unsetTradeBlocs

      public void unsetTradeBlocs()
    • isSetTradeBlocs

      public boolean isSetTradeBlocs()
      Returns true if field trade_blocs is set (has been assigned a value) and false otherwise
    • setTradeBlocsIsSet

      public void setTradeBlocsIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(Country._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<Country,Country._Fields>
    • getFieldValue

      public Object getFieldValue(Country._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<Country,Country._Fields>
    • isSet

      public boolean isSet(Country._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<Country,Country._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(Country that)
    • hashCode

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

      public int compareTo(Country other)
      Specified by:
      compareTo in interface Comparable<Country>
    • fieldForId

      public Country._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<Country,Country._Fields>
    • getFields

      public Country._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<Country,Country._Fields>
    • getFieldMetaData

      public Map<Country._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<Country,Country._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException