SMS

Inheritance: java.lang.Object

public class SMS

Represents SMS short message service details.

Constructors

Constructor Description
SMS() Creates VCard instance with default values.

Methods

Method Description
getNumber() Gets or sets SMS receipient phone number.
setNumber(String value) Gets or sets SMS receipient phone number.
getMessage() Gets or sets SMS message content.
setMessage(String value) Gets or sets SMS message content.
equals(Object obj) Overwrites Equals method to compare SMS properties
hashCode() Overrides GetHashCode method

SMS()

public SMS()

Creates VCard instance with default values.

getNumber()

public final String getNumber()

Gets or sets SMS receipient phone number.

Returns: java.lang.String

setNumber(String value)

public final void setNumber(String value)

Gets or sets SMS receipient phone number.

Parameters:

Parameter Type Description
value java.lang.String

getMessage()

public final String getMessage()

Gets or sets SMS message content.

Returns: java.lang.String

setMessage(String value)

public final void setMessage(String value)

Gets or sets SMS message content.

Parameters:

Parameter Type Description
value java.lang.String

equals(Object obj)

public boolean equals(Object obj)

Overwrites Equals method to compare SMS properties

Parameters:

Parameter Type Description
obj java.lang.Object SMS object to compare with.

Returns: boolean - Returns true if passed SMS object has same type and all its properties are equal to this instance properties.

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - VCard hash code