Package dev.vality.damsel.domain_config
Class Snapshot
java.lang.Object
dev.vality.damsel.domain_config.Snapshot
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Snapshot>,org.apache.thrift.TBase<Snapshot,Snapshot._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-10-25")
public class Snapshot
extends Object
implements org.apache.thrift.TBase<Snapshot,Snapshot._Fields>, Serializable, Cloneable, Comparable<Snapshot>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnapshot._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description Map<Reference,DomainObject>domainstatic Map<Snapshot._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongversion -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(Snapshot other)SnapshotdeepCopy()booleanequals(Snapshot that)booleanequals(Object that)Snapshot._FieldsfieldForId(int fieldId)Map<Reference,DomainObject>getDomain()intgetDomainSize()Map<Snapshot._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Snapshot._Fields[]getFields()ObjectgetFieldValue(Snapshot._Fields field)longgetVersion()inthashCode()booleanisSet(Snapshot._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDomain()Returns true if field domain is set (has been assigned a value) and false otherwisebooleanisSetVersion()Returns true if field version is set (has been assigned a value) and false otherwisevoidputToDomain(Reference key, DomainObject val)voidread(org.apache.thrift.protocol.TProtocol iprot)SnapshotsetDomain(Map<Reference,DomainObject> domain)voidsetDomainIsSet(boolean value)voidsetFieldValue(Snapshot._Fields field, Object value)SnapshotsetVersion(long version)voidsetVersionIsSet(boolean value)StringtoString()voidunsetDomain()voidunsetVersion()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
version
public long version -
domain
-
metaDataMap
-
-
Constructor Details
-
Snapshot
public Snapshot() -
Snapshot
-
Snapshot
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
getVersion
public long getVersion() -
setVersion
-
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) -
getDomainSize
public int getDomainSize() -
putToDomain
-
getDomain
-
setDomain
-
unsetDomain
public void unsetDomain() -
isSetDomain
public boolean isSetDomain()Returns true if field domain is set (has been assigned a value) and false otherwise -
setDomainIsSet
public void setDomainIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Snapshot>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Snapshot,Snapshot._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-