12 lines
517 B
Scala
12 lines
517 B
Scala
|
package com.twitter.tweetypie.thriftscala.entities
|
||
|
|
||
|
import com.twitter.tweetypie.thriftscala.HashtagEntity
|
||
|
import com.twitter.tweetypie.tweettext.TextEntity
|
||
|
|
||
|
object HashtagTextEntity extends TextEntity[HashtagEntity] {
|
||
|
override def fromIndex(entity: HashtagEntity): Short = entity.fromIndex
|
||
|
override def toIndex(entity: HashtagEntity): Short = entity.toIndex
|
||
|
override def move(entity: HashtagEntity, fromIndex: Short, toIndex: Short): HashtagEntity =
|
||
|
entity.copy(fromIndex = fromIndex, toIndex = toIndex)
|
||
|
}
|