AbstractContent()

Do not implement this class!

new AbstractContent()

Methods

copy() → {AbstractContent}

Returns:
AbstractContent

delete(transaction)

Parameters:
Name Type Description
transaction Transaction

gc(store)

Parameters:
Name Type Description
store StructStore

getContent() → {Array.<any>}

Returns:
Array.<any>

getLength() → {number}

Returns:
number

getRef() → {number}

Returns:
number

integrate(transaction, item)

Parameters:
Name Type Description
transaction Transaction
item Item

isCountable() → {boolean}

Should return false if this Item is some kind of meta information (e.g. format information).

  • Whether this Item should be addressable via yarray.get(i)
  • Whether this Item should be counted when computing yarray.length
Returns:
boolean

mergeWith(right) → {boolean}

Parameters:
Name Type Description
right AbstractContent
Returns:
boolean

splice(offset) → {AbstractContent}

Parameters:
Name Type Description
offset number
Returns:
AbstractContent

write(encoder, offset)

Parameters:
Name Type Description
encoder AbstractUpdateEncoder
offset number