
com.avsystem.commons.annotation.atLeast.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-annotations_2.12.0-RC1 Show documentation
Show all versions of commons-annotations_2.12.0-RC1 Show documentation
AVSystem commons library for Scala
The newest version!
package com.avsystem.commons
package annotation
import scala.annotation.StaticAnnotation
/**
* When applied on varargs parameter, indicates that at least some number of parameters is required.
* This is later checked by the static analyzer.
*
* WARNING: implementation of method which takes a varargs parameter may NOT assume that given number of
* arguments will always be passed, because it's still possible to pass a `Seq` where
* varargs parameter is required using the `: _*` ascription, e.g.
* {{{
* varargsMethod(List(): _*)
* }}}
* and that is not checked by the static analyzer.
*/
class atLeast(n: Int) extends StaticAnnotation
© 2015 - 2025 Weber Informatics LLC | Privacy Policy