ResolvedPeerAddress

Resolved peer address.

Peer address that has resolved country code. If the original number didn't include any country code, a default one may be used.

Constructors

Link copied to clipboard
constructor()
Constructor.
constructor(@Nullable value: String)
Constructor.

Functions

Link copied to clipboard
open fun changeThread()
Change thread this pointer can be accessed from to the current one.
Link copied to clipboard
open fun close()
Close the native pointer.
abstract fun close()
Link copied to clipboard
open fun equals(o: Any): Boolean
open fun equals(@Nullable o: Any): Boolean
Check if the pointer is equal to another one.
Link copied to clipboard
open fun get(): String
Return canonical value.
Link copied to clipboard
Get the country dialing code
Link copied to clipboard
Get ISO 3166 alpha-2 code of the country this number belongs to.
Link copied to clipboard
Get olympic (IOC) code of the country belonging to this number.
Link copied to clipboard
Get title of the country or area belonging to this number.
Link copied to clipboard
open fun getE164(): String
Get the number in E.
Link copied to clipboard
Return human-readable version of this number.
Link copied to clipboard
Get the regional prefix
Link copied to clipboard
Get peer address type.
Link copied to clipboard
open fun hashCode(): Int
Get hash code.
Link copied to clipboard
open fun isClosed(): Boolean
Check if the native pointer is closed.
Link copied to clipboard
Link copied to clipboard
open fun isEmpty(): Boolean
Check whether the peer address is empty.
Link copied to clipboard
open fun isMutable(): Boolean
Check if the native pointer is mutable.
Link copied to clipboard
open fun isSamePointer(@NonNull other: Pointer): Boolean
Check if the pointer is the same as in another pointer.
Link copied to clipboard
open fun readExternal(input: ObjectInput)
Read the peer address from a stream.
abstract fun readExternal(p: ObjectInput)
Link copied to clipboard
open fun set(@Nullable data: String)
Set value.
Link copied to clipboard
open fun toString(): String
Convert the peer address to a string.
Link copied to clipboard
open fun writeExternal(output: ObjectOutput)
Write the peer address to a stream.
abstract fun writeExternal(p: ObjectOutput)