case class Metadata(id: String, fraction: Double, description: Option[String], source: String) extends Product with Serializable
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.
- Alphabetic
- By Inheritance
- Metadata
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Metadata(id: String, fraction: Double, description: Option[String], source: String)
- 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( ... )
- val description: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fraction: Double
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
- val source: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )