abstract class Mutable extends ToggleMap
The ToggleMap interface is read only and this is the mutable side of it.
Implementations are expected to be thread-safe.
- Alphabetic
- By Inheritance
- Mutable
- ToggleMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Mutable()
Abstract Value Members
-
abstract
def
apply(id: String): Toggle[Int]
Get a Toggle for this
id.Get a Toggle for this
id.The
Toggle.isDefinedmethod should returnfalseif the ToggleMap does not know about that Toggle or it is currently not "operating" on thatid.- 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".
-
abstract
def
iterator: Iterator[Metadata]
- Definition Classes
- ToggleMap
-
abstract
def
put(id: String, fraction: Double): Unit
Add or replace the Toggle for this
idwith a Toggle that returnstruefor afractionof the inputs.- 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".- fraction
must be within
0.0–1.0, inclusive. If not, the operation is ignored.
-
abstract
def
remove(id: String): Unit
Remove the Toggle for this
id.Remove the Toggle for this
id.This is a no-op for missing values.
- 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".
Concrete 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] )
-
def
get(id: String): Toggle[Integer]
Get a Toggle for this
id.Get a Toggle for this
id. Java-friendly synonym forapply.The
Toggle.isDefinedmethod should returnfalseif the ToggleMap does not know about that Toggle or it is currently not "operating" on thatid.- 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".
- Definition Classes
- ToggleMap
- Note
this returns a
java.lang.Integerfor Java compatibility.
-
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
-
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
orElse(that: ToggleMap): ToggleMap
Creates a ToggleMap which uses
thisbeforethat.Creates a ToggleMap which uses
thisbeforethat.apply returns a Toggle that uses the Toggle from
thisif itisDefinedAtfor the input, before tryingthat.iterator includes metadata from both
selfandthat, withself's metadata taking precedence on conflicting ids. Note however that if aToggleMetadata.descriptionis not defined onself, the description fromthatwill be preferred. This is done because many sources ofToggleMapsdo not have a description defined and we want to surface that information.- Definition Classes
- ToggleMap
-
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( ... )