Package dev.vality.damsel.domain
Class MobilePhone
java.lang.Object
dev.vality.damsel.domain.MobilePhone
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<MobilePhone>,org.apache.thrift.TBase<MobilePhone,,MobilePhone._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class MobilePhone
extends Object
implements org.apache.thrift.TBase<MobilePhone,MobilePhone._Fields>, Serializable, Cloneable, Comparable<MobilePhone>
Телефонный номер согласно (E.164 — рекомендация ITU-T)
+79114363738
cc = 7 - код страны(1-3 цифры)
ctn = 9114363738 - 10-ти значный номер абонента(макс 12)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<MobilePhone._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionMobilePhone(MobilePhone other) Performs a deep copy on other.MobilePhone(String cc, String ctn) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(MobilePhone other) deepCopy()booleanequals(MobilePhone that) booleanfieldForId(int fieldId) getCc()getCtn()Map<MobilePhone._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldValue(MobilePhone._Fields field) inthashCode()booleanisSet(MobilePhone._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCc()Returns true if field cc is set (has been assigned a value) and false otherwisebooleanisSetCtn()Returns true if field ctn is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) voidsetCcIsSet(boolean value) voidsetCtnIsSet(boolean value) voidsetFieldValue(MobilePhone._Fields field, Object value) toString()voidunsetCc()voidunsetCtn()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
cc
-
ctn
-
metaDataMap
-
-
Constructor Details
-
MobilePhone
public MobilePhone() -
MobilePhone
-
MobilePhone
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._Fields>
-
getCc
-
setCc
-
unsetCc
public void unsetCc() -
isSetCc
public boolean isSetCc()Returns true if field cc is set (has been assigned a value) and false otherwise -
setCcIsSet
public void setCcIsSet(boolean value) -
getCtn
-
setCtn
-
unsetCtn
public void unsetCtn() -
isSetCtn
public boolean isSetCtn()Returns true if field ctn is set (has been assigned a value) and false otherwise -
setCtnIsSet
public void setCtnIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._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<MobilePhone,MobilePhone._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<MobilePhone>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<MobilePhone,MobilePhone._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
-