SafesData

Specifies some kind of safes data.

Author

Arnau Mora

Since

20210316

Constructors

Link copied to clipboard
fun SafesData()

Functions

Link copied to clipboard
fun count(): Int
Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open fun forEach(p0: Consumer<in SafeCountData>)
Link copied to clipboard
operator fun get(index: Int): SafeCountData

Gets the SafeCountData at a index

Link copied to clipboard

Checks if there's at least one count of safes.

Link copied to clipboard
open operator override fun iterator(): Iterator<SafeCountData>
Link copied to clipboard
abstract fun list(): List<SafeCountData>

Returns the class as a SafeCountData which can be used for displaying in the UI easily.

Link copied to clipboard
Link copied to clipboard
fun sum(): Long
Link copied to clipboard
abstract fun toJSONString(): String

Converts the class to a JSON-formatted String.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
abstract val color: Int

The color that will be shown on the card's background when displaying the data to the user.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
operator fun <D : DataClass<*, *, *>> Iterable<D>.get(objectId: String): D?

Gets an element from the Iterable.

Link copied to clipboard

Parses a list of Grades as AnnotatedStrings, so they get colored.

Link copied to clipboard
fun <D : DataClass<*, *, *>> Iterable<D>.has(objectId: String): Boolean

Checks if an Iterable contains a DataClass with the set objectId.

Link copied to clipboard
Link copied to clipboard