1
package org.zalando.zhewbacca
2

3
case class Scope private[zhewbacca] (names: Set[String]) {
4

5 2
  private val nonEmptyNames = names.filterNot(_.trim.isEmpty)
6

7
  def in(that: Scope): Boolean = {
8 2
    nonEmptyNames.intersect(that.names) == nonEmptyNames
9
  }
10
}
11

12
object Scope {
13 2
  val Default = Scope(Set("uid"))
14 2
  val Empty = Scope(Set(""))
15
}

Read our documentation on viewing source code .

Loading