KSnip / com.github.nwillc.ksnip.model / Snippet

Snippet

data class Snippet : Comparable<Snippet>

Data class representing a snippet. A snippet is comprised of a category, a title and its body.

Constructors

<init>

Snippet(category: String = "", title: String = "", body: String = "")

Data class representing a snippet. A snippet is comprised of a category, a title and its body.

Properties

body

var body: String

the body of the snippet

category

var category: String

the category the snippet falls in

title

var title: String

the title of the snippet

Functions

compareTo

fun compareTo(other: Snippet): Int

Compares one snippet to other, employing the category and title to compare the two snippets.