Class TelephoneNumber
- java.lang.Object
-
- one.xingyi.reference4.telephone.server.domain.TelephoneNumber
-
- All Implemented Interfaces:
one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>,one.xingyi.core.sdk.IXingYiResource,ITelephoneNumber
public class TelephoneNumber extends java.lang.Object implements one.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>, ITelephoneNumber
-
-
Constructor Summary
Constructors Constructor Description TelephoneNumber(java.lang.String number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.lang.Stringnumber()<J> JtoJson(one.xingyi.core.marshelling.JsonWriter<J> jsonWriter, one.xingyi.core.marshelling.ContextForJson context)java.lang.StringtoString()TelephoneNumberwithnumber(java.lang.String number)
-
-
-
Method Detail
-
number
public java.lang.String number()
- Specified by:
numberin interfaceITelephoneNumber
-
withnumber
public TelephoneNumber withnumber(java.lang.String number)
- Specified by:
withnumberin interfaceITelephoneNumber
-
toJson
public <J> J toJson(one.xingyi.core.marshelling.JsonWriter<J> jsonWriter, one.xingyi.core.marshelling.ContextForJson context)- Specified by:
toJsonin interfaceone.xingyi.core.marshelling.HasJson<one.xingyi.core.marshelling.ContextForJson>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-