ModelObject

abstract class ModelObject<T> : Comparable<T>

Base class for objects which are a part of the Authenticator Model.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun compareTo(p: T): Int
Link copied to clipboard
open fun getDate(milliSeconds: Long): Calendar
Return date from milliseconds.
Link copied to clipboard
abstract fun matches(object: T): Boolean
Returns true if the two objects would conflict if added to a storage system.
Link copied to clipboard
abstract fun serialize(): String
Serializes the T object into its equivalent Json representation.
Link copied to clipboard
abstract fun toJson(): String
Creates a JSON string representation of T object.