Class Country

java.lang.Object
dev.vality.damsel.dominant.cache.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.14.2)",
           date="2023-10-11")
public class Country
extends Object
implements org.apache.thrift.TBase<Country,​Country._Fields>, Serializable, Cloneable, Comparable<Country>
See Also:
Serialized Form
  • Field Details

    • ref

      public String ref
    • name

      public String name
    • trade_blocs

      public Set<String> trade_blocs
    • metaDataMap

      public static final Map<Country._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • Country

      public Country()
    • Country

      public Country​(String ref, String name, Set<String> trade_blocs)
    • 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>
    • getRef

      public String getRef()
    • setRef

      public Country setRef​(String ref)
    • unsetRef

      public void unsetRef()
    • isSetRef

      public boolean isSetRef()
      Returns true if field ref is set (has been assigned a value) and false otherwise
    • setRefIsSet

      public void setRefIsSet​(boolean value)
    • 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<String> getTradeBlocsIterator()
    • addToTradeBlocs

      public void addToTradeBlocs​(String elem)
    • getTradeBlocs

      public Set<String> getTradeBlocs()
    • setTradeBlocs

      public Country setTradeBlocs​(Set<String> 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()
    • getFieldMetaData

      public Map<Country._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • 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