Item

Entity class representing Items.

Author

Jan Müller
data class Item(id: String,name: String,amount: Int?,price: Double) : Entity

Constructors

<init>
Link copied to clipboard
fun <init>(id: String, name: String, amount: Int?, price: Double)

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Int?
component4
Link copied to clipboard
operator fun component4(): Double
copy
Link copied to clipboard
fun copy(id: String, name: String, amount: Int?, price: Double): Item
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

amount
Link copied to clipboard
The optional amount of the Item.
val amount: Int?
id
Link copied to clipboard
The id of the Item.
open override val id: String
name
Link copied to clipboard
The name of the Item.
val name: String
price
Link copied to clipboard
The price of the Item.
val price: Double