From 8830b00383a132d284c6bc96b8aaa61a66bf43a6 Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Sat, 22 Apr 2017 14:48:02 -0500 Subject: [PATCH] bump build --- build.gradle | 2 +- src/main/kotlin/com/github/sanity/shoebox/View.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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) }