Package de.justjanne.libquassel.protocol.models.ids

Types

Link copied to clipboard
value class BufferId(id: BufferIdType) : SignedId<BufferIdType>

A SignedId for a chat/buuffer

Link copied to clipboard
value class IdentityId(id: IdentityIdType) : SignedId<IdentityIdType>

A SignedId for an identity object

Link copied to clipboard
value class MsgId(id: MsgIdType) : SignedId<MsgIdType>

A SignedId for an individual message Warning: this is the only id which can be backed by a 64-bit value

Link copied to clipboard
value class NetworkId(id: NetworkIdType) : SignedId<NetworkIdType>

A SignedId for an irc network

Link copied to clipboard
interface SignedId<T : Number, Comparable<T>> : Serializable, Comparable<SignedId<T>>

Base type for a signed id

Link copied to clipboard
typealias SignedId64Type = Long

Native representation of a SignedId64

Link copied to clipboard
typealias SignedIdType = Int

Native representation of a SignedId

Functions

Link copied to clipboard
@JvmName(name = "isValidId")
inline fun SignedId<SignedIdType>.isValid(): Boolean
@JvmName(name = "isValidId64")
inline fun SignedId<SignedId64Type>.isValid(): Boolean

Validity check for a signed id