Skip to content

Commit 6600d96

Browse files
committed
Kotlin BaseEntry
1 parent d6b3129 commit 6600d96

File tree

2 files changed

+36
-97
lines changed

2 files changed

+36
-97
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/data/BaseEntry.java

Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package com.github.mikephil.charting.data
2+
3+
import android.graphics.drawable.Drawable
4+
5+
abstract class BaseEntry {
6+
7+
private var _y: Float = 0f
8+
open var y: Float
9+
get() = _y
10+
set(value) {
11+
_y = value
12+
}
13+
14+
var data: Any? = null
15+
16+
var icon: Drawable? = null
17+
18+
constructor()
19+
20+
constructor(y: Float) {
21+
this._y = y
22+
}
23+
24+
constructor(y: Float, data: Any?) : this(y) {
25+
this.data = data
26+
}
27+
28+
constructor(y: Float, icon: Drawable?) : this(y) {
29+
this.icon = icon
30+
}
31+
32+
constructor(y: Float, icon: Drawable?, data: Any?) : this(y) {
33+
this.icon = icon
34+
this.data = data
35+
}
36+
}

0 commit comments

Comments
 (0)