object Toggle
- Alphabetic
- By Inheritance
- Toggle
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Captured extends AnyRef
A mixin to get access to the last result of Toggle.apply.
A mixin to get access to the last result of Toggle.apply.
Useful for providing visibility to how a toggle is being used at runtime.
- See also
-
case class
Metadata(id: String, fraction: Double, description: Option[String], source: String) extends Product with Serializable
The metadata about a Toggle.
The metadata about a Toggle.
- id
the identifying name of the
Toggle. These should generally be fully qualified names to avoid conflicts between libraries. For example, "com.twitter.finagle.CoolThing". Valid characters areA-Z,a-z,0-9,_,-,.. See Toggle$.isValidId.- fraction
must be between
0.0 and 1.0, inclusive. This represents the fraction of inputs that will returntrue. See Toggle$.isValidFraction.- description
human-readable description of the Toggle's purpose.
- source
the origin of this Toggle which is often given by
toStringof the ToggleMap that created it.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isValidFraction(fraction: Double): Boolean
Whether or not the given
fractionis valid.Whether or not the given
fractionis valid.- fraction
must be between
0.0 and 1.0, inclusive. This represents the fraction of inputs that will returntrue.
-
def
isValidId(id: String): Boolean
Whether or not the given
idis valid.Whether or not the given
idis valid.- id
the identifying name of the
Toggle. These should generally be fully qualified names to avoid conflicts between libraries. For example, "com.twitter.finagle.CoolThing". Valid characters areA-Z,a-z,0-9,_,-,..
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
off[T](id: String): Fractional[T]
A Toggle which is defined for all inputs and always returns
false. -
def
on[T](id: String): Fractional[T]
A Toggle which is defined for all inputs and always returns
true. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
Fractional
Namespace for methods that operate on
Toggle.Fractional