Class VersionedObject

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

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

    • version

      public long version
    • object

      public DomainObject object
    • contemporary_at

      public String contemporary_at
    • metaDataMap

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

    • VersionedObject

      public VersionedObject()
    • VersionedObject

      public VersionedObject(long version, DomainObject object)
    • VersionedObject

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

    • deepCopy

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

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

      public long getVersion()
    • setVersion

      public VersionedObject setVersion(long version)
    • unsetVersion

      public void unsetVersion()
    • isSetVersion

      public boolean isSetVersion()
      Returns true if field version is set (has been assigned a value) and false otherwise
    • setVersionIsSet

      public void setVersionIsSet(boolean value)
    • getObject

      public DomainObject getObject()
    • setObject

      public VersionedObject setObject(DomainObject object)
    • unsetObject

      public void unsetObject()
    • isSetObject

      public boolean isSetObject()
      Returns true if field object is set (has been assigned a value) and false otherwise
    • setObjectIsSet

      public void setObjectIsSet(boolean value)
    • getContemporaryAt

      public String getContemporaryAt()
    • setContemporaryAt

      public VersionedObject setContemporaryAt(String contemporary_at)
    • unsetContemporaryAt

      public void unsetContemporaryAt()
    • isSetContemporaryAt

      public boolean isSetContemporaryAt()
      Returns true if field contemporary_at is set (has been assigned a value) and false otherwise
    • setContemporaryAtIsSet

      public void setContemporaryAtIsSet(boolean value)
    • setFieldValue

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

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

      public boolean isSet(VersionedObject._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<VersionedObject,VersionedObject._Fields>
    • equals

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

      public boolean equals(VersionedObject that)
    • hashCode

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

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

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

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

      public Map<VersionedObject._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<VersionedObject,VersionedObject._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