All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gitbucket.core.model.activity.BaseActivityInfo.scala Maven / Gradle / Ivy

The newest version!
package gitbucket.core.model.activity

import gitbucket.core.model.Activity

trait BaseActivityInfo {

  def toActivity: Activity

  protected def trimInfoString(str: String, maxLen: Int): String =
    if (str.length > maxLen) s"${str.substring(0, maxLen)}..."
    else str
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy