public class

Cell

extends Object
implements Comparable<T>
java.lang.Object
   ↳ org.mule.module.google.spreadsheet.model.Cell

Class Overview

This class represents a cell in a spreadsheet.

Summary

Fields
private int columnNumber The number of the represented column.
private String evaluatedValue The evaluated cell value.
private int rowNumber The number of the row it belongs to.
private String valueOrFormula The literal value or formula that was introduced into the cell.
Public Constructors
Cell()
Public Methods
int compareTo(Cell o)
A cell is considered lower than another if it's column number is lower.
boolean equals(Object obj)
Two cells are equl if the belong to the same row and column
int getColumnNumber()
String getEvaluatedValue()
int getRowNumber()
String getValueOrFormula()
int hashCode()
column number times row number times eleven
void setColumnNumber(int columnNumber)
void setEvaluatedValue(String evaluatedValue)
void setRowNumber(int rowNumber)
void setValueOrFormula(String valueOrFormula)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Fields

private int columnNumber

The number of the represented column. It's a 1-based index. Defaults to zero which means that this is still unknown.

private String evaluatedValue

The evaluated cell value. By evaluated we mean that if the user entered a formula then the result of that evaluation is returned. If a literal value was introduced but the cell was subject to some kind of formatting, then the formatted value is returned. This is just a holder for the value, the actual formatting and evaluation happens server side at the spreadsheet's server

private int rowNumber

The number of the row it belongs to. It's a 1-based index. Defaults to zero which means that this is still unknown.

private String valueOrFormula

The literal value or formula that was introduced into the cell. This is the value as the user entered it. It doesn't have any formatting or evaluation (in the case of formulas)

Public Constructors

public Cell ()

Public Methods

public int compareTo (Cell o)

A cell is considered lower than another if it's column number is lower.

Parameters
o

public boolean equals (Object obj)

Two cells are equl if the belong to the same row and column

Parameters
obj

public int getColumnNumber ()

public String getEvaluatedValue ()

public int getRowNumber ()

public String getValueOrFormula ()

public int hashCode ()

column number times row number times eleven

public void setColumnNumber (int columnNumber)

Parameters
columnNumber

public void setEvaluatedValue (String evaluatedValue)

Parameters
evaluatedValue

public void setRowNumber (int rowNumber)

Parameters
rowNumber

public void setValueOrFormula (String valueOrFormula)

Parameters
valueOrFormula

public String toString ()