io.hydrosphere.mist.Specification.scala Maven / Gradle / Ivy
package io.hydrosphere.mist
/** Interface for specification pattern
*
* @tparam T type of repository element
*/
private[mist] trait Specification[T] {
/** Predicate for repository filtering
*
* @param element repository element for checking
* @return is this `element` satisfies implemented condition
*/
def specified(element: T): Boolean
}