diff --git a/build.gradle b/build.gradle index 2b4cf99..ca85159 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ group 'com.github.sanity' -version '0.2.8' +version '0.2.9' buildscript { ext.kotlin_version = '1.1.1' diff --git a/src/main/kotlin/com/github/sanity/shoebox/View.kt b/src/main/kotlin/com/github/sanity/shoebox/View.kt index 1090122..7a53041 100644 --- a/src/main/kotlin/com/github/sanity/shoebox/View.kt +++ b/src/main/kotlin/com/github/sanity/shoebox/View.kt @@ -143,6 +143,8 @@ class View(val references: Shoebox, fun addKey(key: String) = Reference(keys.plus(key)) } + + fun orderedSet(key : String, comparator : Comparator = compareBy {it.hashCode()}) = OrderedViewSet(this, key, comparator) }