Class SmsType
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.SmsType
-
public class SmsType extends java.lang.ObjectSmsTypeSMS type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay -> SMS 2WAY)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmsType._Deserializerstatic classSmsType._Serializerstatic classSmsType.SmsTypeEnum
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<SmsType.SmsTypeEnum>asEnum()booleanequals(java.lang.Object obj)inthashCode()booleanisKnown()static SmsTypeof(long value)Returns a SmsType with the given value.java.lang.StringtoString()longvalue()static SmsType[]values()
-
-
-
Method Detail
-
of
public static SmsType of(long value)
Returns a SmsType with the given value. For a specific value the returned object will always be a singleton so reference equality is satisfied when the values are the same.- Parameters:
value- value to be wrapped as SmsType
-
value
public long value()
-
asEnum
public java.util.Optional<SmsType.SmsTypeEnum> asEnum()
-
isKnown
public boolean isKnown()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
values
public static SmsType[] values()
-
-