public interface IValueService
Modifier and Type | Method and Description |
---|---|
void |
clear(IRangeAddress range)
Clears the value in the range
|
IValue |
get(int colNum,
int rowNum)
Get value of a cell with given row and column numbers
|
IValue |
get(IRangeAddress range)
Get value of a cell (of given single cell address) or top left cell (of given cells range)
|
IValue |
get(String range)
Get value of a cell (of given single cell address like "D9") or top left cell (of given cells range like "A1:B4")
|
void |
parseContent(int colNum,
int rowNum,
String content)
Sets a value in the single cell.
|
void |
parseContent(IRangeAddress range,
String content)
Sets a value in the range of cells.
|
void |
parseContent(String range,
String content)
Sets a value in the range of cells.
|
void |
set(int colNum,
int rowNum,
Function<IValueFactory,IValue> valueFunction)
Sets a value in the single cell.
|
void |
set(int colNum,
int rowNum,
IValue value)
Set value to single cell with given column and row numbers
|
void |
set(IRangeAddress range,
Function<IValueFactory,IValue> valueFunction)
Sets a value in the range of cells.
|
void |
set(IRangeAddress range,
IValue value)
Sets the value in the range of cells
|
void |
set(String range,
Function<IValueFactory,IValue> valueFunction)
Sets a value in the range of cells.
|
void |
set(String range,
IValue value)
Set value to range of cells with the given String with values like "A4" or "D4:G10"
|
void |
updateExisting(int colNum,
int rowNum,
UnaryOperator<IValue> editor)
Edit value of single cell with given column and row numbers
|
void |
updateExisting(IRangeAddress range,
UnaryOperator<IValue> editor)
Edits the value in the range of cells
|
void |
updateExisting(String range,
UnaryOperator<IValue> editor)
Edit value of range of cells with the given String with values like "A4" or "D4:G10"
|
IValue get(int colNum, int rowNum)
colNum
- the column numberrowNum
- the row numberIValue
of needed cellIValue get(String range)
range
- the given rangeIValue
of needed cellIValue get(IRangeAddress range)
range
- the given rangeIValue
of needed cellvoid set(IRangeAddress range, IValue value)
range
- the IRangeAddress
in which the settings will be appliedvalue
- the value to be setIRangeAddress
,
IValue
void set(String range, IValue value)
In case of incorrect string value throws an ParseRangeAddressException
range
- the cells rangevalue
- the valueIValue
void set(int colNum, int rowNum, IValue value)
In case incorrect of any number throws an IndexOutOfBoundsException
colNum
- the column numberrowNum
- the row numbervalue
- the valueIValue
void set(IRangeAddress range, Function<IValueFactory,IValue> valueFunction)
IValueFactory
and should return the built IValue
. The builder is instantiated from the IScellApiResolver
so that the user could register his own implementation using custom default datarange
- the IRangeAddress
in which the value will be appliedvalueFunction
- the Function with a new instance of IValueFactory
void set(String range, Function<IValueFactory,IValue> valueFunction)
IValueFactory
and should return the built IValue
. The builder is instantiated from the IScellApiResolver
so that the user could register his own implementation using custom default data
In case of incorrect string value throws an ParseRangeAddressException
range
- the range like "A2" or "B2:D4" in which the value will be appliedvalueFunction
- the Function with a new instance of IValueFactory
void set(int colNum, int rowNum, Function<IValueFactory,IValue> valueFunction)
IValueFactory
and should return the built IValue
. The builder is instantiated from the IScellApiResolver
so that the user could register his own implementation using custom default data
In case incorrect of any number throws an IndexOutOfBoundsException
colNum
- the column numberrowNum
- the row numbervalueFunction
- the Function with a new instance of IValueFactory
void parseContent(IRangeAddress range, String content)
range
- the given rangecontent
- the content to be recognizedvoid parseContent(String range, String content)
In case of incorrect string value throws an ParseRangeAddressException
range
- the given rangecontent
- the content to be recognizedvoid parseContent(int colNum, int rowNum, String content)
In case incorrect of any number throws an IndexOutOfBoundsException
colNum
- the column numberrowNum
- the row numbercontent
- the content to be recognizedvoid updateExisting(IRangeAddress range, UnaryOperator<IValue> editor)
range
- the IRangeAddress
in which the values will be edditededitor
- the function that takes current value of the cell and produces a new value of the cellIRangeAddress
,
IValue
void updateExisting(String range, UnaryOperator<IValue> editor)
In case of incorrect string value throws an ParseRangeAddressException
range
- range of cells to edit its valueseditor
- function to take current cell value and produce the new cell valueIValue
void updateExisting(int colNum, int rowNum, UnaryOperator<IValue> editor)
In case incorrect of any number throws an IndexOutOfBoundsException
colNum
- the column numberrowNum
- the row numbereditor
- function to take current cell value and produce the new cell valueIValue
void clear(IRangeAddress range)
range
- the IRangeAddress
in which the clearing will be appliedIRangeAddress
Copyright © 2024. All rights reserved.