BrightSide Workbench Full Report + Source Code
org.turro.charts.Data Class Reference
Collaboration diagram for org.turro.charts.Data:

Public Member Functions

String getKey ()
 
String getLink ()
 
void setLink (String link)
 
Object getValue ()
 
Object getValue (Object defaultValue)
 
void setValue (Object value)
 
void addValue (Object value)
 
 Data (String key)
 

Protected Attributes

List< Object > values = new ArrayList<>()
 
String key
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file Data.java.

Constructor & Destructor Documentation

◆ Data()

org.turro.charts.Data.Data ( String  key)

Definition at line 65 of file Data.java.

65  {
66  this.key = key;
67  }

Member Function Documentation

◆ addValue()

void org.turro.charts.Data.addValue ( Object  value)

Definition at line 61 of file Data.java.

61  {
62  values.add(value);
63  }
List< Object > values
Definition: Data.java:30
Here is the caller graph for this function:

◆ getKey()

String org.turro.charts.Data.getKey ( )

Definition at line 33 of file Data.java.

33  {
34  return key;
35  }

◆ getLink()

String org.turro.charts.Data.getLink ( )

Definition at line 37 of file Data.java.

37  {
38  return link;
39  }

◆ getValue() [1/2]

Object org.turro.charts.Data.getValue ( )

Definition at line 45 of file Data.java.

45  {
46  return getValue(null);
47  }
Object getValue()
Definition: Data.java:45

◆ getValue() [2/2]

Object org.turro.charts.Data.getValue ( Object  defaultValue)

Definition at line 49 of file Data.java.

49  {
50  return values.isEmpty() ? defaultValue : values.get(0);
51  }

◆ setLink()

void org.turro.charts.Data.setLink ( String  link)

Definition at line 41 of file Data.java.

41  {
42  this.link = link;
43  }
Here is the caller graph for this function:

◆ setValue()

void org.turro.charts.Data.setValue ( Object  value)

Definition at line 53 of file Data.java.

53  {
54  if(!values.isEmpty()) {
55  values.set(0, value);
56  } else {
57  addValue(value);
58  }
59  }
void addValue(Object value)
Definition: Data.java:61
Here is the call graph for this function:

Member Data Documentation

◆ key

String org.turro.charts.Data.key
protected

Definition at line 31 of file Data.java.

◆ values

List<Object> org.turro.charts.Data.values = new ArrayList<>()
protected

Definition at line 30 of file Data.java.


The documentation for this class was generated from the following file: