Class DataUpdate<DATA>
- java.lang.Object
-
- org.openmuc.jeebus.spine.spi.function.DataUpdate<DATA>
-
- Type Parameters:
DATA- type of data that was updated
public class DataUpdate<DATA> extends java.lang.ObjectData class that holds the parameters toReadAndWriteListFeatureFunction.writeData(Object, DataUpdateType, Integer).
-
-
Constructor Summary
Constructors Constructor Description DataUpdate(DATA data, DataUpdateType updateType, java.lang.Integer idx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <DATA> DataUpdate<DATA>added(DATA data, int idx)static <DATA> DataUpdate<DATA>deleted(DATA removedData, int idx)DATAgetData()java.lang.IntegergetIdx()DataUpdateTypegetUpdateType()static <DATA> DataUpdate<DATA>updated(DATA data, java.lang.Integer idx)
-
-
-
Constructor Detail
-
DataUpdate
public DataUpdate(DATA data, DataUpdateType updateType, java.lang.Integer idx)
-
-
Method Detail
-
deleted
public static <DATA> DataUpdate<DATA> deleted(DATA removedData, int idx)
- Parameters:
removedData- the data that was deletedidx- index where at the data was removed for the feature function- Returns:
- a DataUpdate object describing the deletion
-
updated
public static <DATA> DataUpdate<DATA> updated(DATA data, java.lang.Integer idx)
- Parameters:
data- the data that was updated (copy of the original data)idx- index where at the data was added for the feature function- Returns:
- a DataUpdate object describing the update
-
added
public static <DATA> DataUpdate<DATA> added(DATA data, int idx)
- Parameters:
data- the data that was addedidx- index where at the data was added for the feature function- Returns:
- a DataUpdate object describing the update
-
getData
public DATA getData()
-
getUpdateType
public DataUpdateType getUpdateType()
-
getIdx
public java.lang.Integer getIdx()
-
-