FixedSafesData

data class FixedSafesData(val quickdrawCount: Long, val paraboltCount: Long, val spitCount: Long, val tensorCount: Long, val pitonCount: Long, val burilCount: Long) : SafesData

Stores the data for the installed safes in a Path.

Author

Arnau Mora

Since

20210916

Parameters

quickdrawCount

The amount of strings that are required in the Path. This is usually the sum of the rest of the attributes.

paraboltCount

The amount of safes that are parabolts on the Path.

spitCount

The amount of safes that are spits on the Path.

tensorCount

The amount of safes that are tensors on the Path.

pitonCount

The amount of safes that are pitons on the Path.

burilCount

The amount of safes that are burils on the Path.

Constructors

Link copied to clipboard
fun FixedSafesData(quickdrawCount: Long, paraboltCount: Long, spitCount: Long, tensorCount: Long, pitonCount: Long, burilCount: Long)

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
open override 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
open override 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
Link copied to clipboard
open override val color: Int

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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