-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable
public class Entry extends BaseEntry implements Parcelable, Serializable
Class representing one entry in the chart. Might contain multiple values. Might only contain a single value depending on the used constructor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEntry.Companion
-
Constructor Summary
Constructors Constructor Description Entry()Entry(Float x, Float y)A Entry represents one single entry in the chart. Entry(Float x, Float y, Object data)A Entry represents one single entry in the chart. Entry(Float x, Float y, Drawable icon)A Entry represents one single entry in the chart. Entry(Float x, Float y, Drawable icon, Object data)A Entry represents one single entry in the chart.
-
Method Summary
Modifier and Type Method Description FloatgetX()UnitsetX(Float x)FloatgetY()UnitsetY(Float y)final ObjectgetData()final UnitsetData(Object data)final DrawablegetIcon()final UnitsetIcon(Drawable icon)Entrycopy()returns an exact copy of the entry final BooleanequalTo(Entry e)Compares value, xIndex and data of the entries. StringtoString()returns a string representation of the entry containing x-index and value IntegerdescribeContents()UnitwriteToParcel(Parcel dest, Integer flags)-
-
Constructor Detail
-
Entry
Entry()
-
Entry
Entry(Float x, Float y)
A Entry represents one single entry in the chart.- Parameters:
x- the x valuey- the y value (the actual value of the entry)
-
Entry
Entry(Float x, Float y, Object data)
A Entry represents one single entry in the chart.- Parameters:
x- the x valuey- the y value (the actual value of the entry)data- Spot for additional data this Entry represents.
-
Entry
Entry(Float x, Float y, Drawable icon)
A Entry represents one single entry in the chart.- Parameters:
x- the x valuey- the y value (the actual value of the entry)icon- icon image
-
-
Method Detail
-
equalTo
final Boolean equalTo(Entry e)
Compares value, xIndex and data of the entries. Returns true if entries are equal in those points, false if not. Does not check by hash-code like it's done by the "equals" method.
-
toString
String toString()
returns a string representation of the entry containing x-index and value
-
describeContents
Integer describeContents()
-
writeToParcel
Unit writeToParcel(Parcel dest, Integer flags)
-
-
-
-