Class DataUpdate<DATA>

    • 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 deleted
        idx - 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 added
        idx - index where at the data was added for the feature function
        Returns:
        a DataUpdate object describing the update
      • getData

        public DATA getData()
      • getIdx

        public java.lang.Integer getIdx()