Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
/** @constructor */
ScalaJS.c.monifu_concurrent_atomic_AtomicAny = (function() {
  ScalaJS.c.java_lang_Object.call(this);
  this.ref$1 = null
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.constructor = ScalaJS.c.monifu_concurrent_atomic_AtomicAny;
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.apply__O = (function() {
  return ScalaJS.impls.monifu_concurrent_atomic_Atomic$class__apply__Lmonifu_concurrent_atomic_Atomic__O(this)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.update__O__V = (function(value) {
  ScalaJS.impls.monifu_concurrent_atomic_Atomic$class__update__Lmonifu_concurrent_atomic_Atomic__O__V(this, value)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.$$colon$eq__O__V = (function(value) {
  ScalaJS.impls.monifu_concurrent_atomic_Atomic$class__$colon$eq__Lmonifu_concurrent_atomic_Atomic__O__V(this, value)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.getAndSet__O__O = (function(update) {
  var current = this.ref$1;
  this.ref$1 = update;
  return current
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.compareAndSet__O__O__Z = (function(expect, update) {
  if (ScalaJS.anyEqEq(this.ref$1, expect)) {
    this.ref$1 = update;
    return true
  } else {
    return false
  }
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.set__O__V = (function(update) {
  this.ref$1 = update
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.get__O = (function() {
  return this.ref$1
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.transformAndExtract__Lscala_Function1__O = (function(cb) {
  var x1 = ScalaJS.as.scala_Tuple2(cb.apply__O__O(this.ref$1));
  matchEnd3: {
    if ((x1 !== null)) {
      var update = x1.$$und1__O();
      var r = x1.$$und2__O();
      var x$1 = new ScalaJS.c.scala_Tuple2().init___O__O(update, r);
      break matchEnd3
    };
    throw new ScalaJS.c.scala_MatchError().init___O(x1)
  };
  var update$2 = x$1.$$und1__O();
  var r$2 = x$1.$$und2__O();
  this.ref$1 = update$2;
  return r$2
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.transformAndGet__Lscala_Function1__O = (function(cb) {
  var update = cb.apply__O__O(this.ref$1);
  this.ref$1 = update;
  return update
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.getAndTransform__Lscala_Function1__O = (function(cb) {
  var current = this.ref$1;
  this.ref$1 = cb.apply__O__O(this.ref$1);
  return current
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.transform__Lscala_Function1__V = (function(cb) {
  this.ref$1 = cb.apply__O__O(this.ref$1)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.init___O = (function(initialValue) {
  ScalaJS.c.java_lang_Object.prototype.init___.call(this);
  ScalaJS.impls.monifu_concurrent_atomic_Atomic$class__$init$__Lmonifu_concurrent_atomic_Atomic__V(this);
  this.ref$1 = initialValue;
  return this
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.$$colon$eq__O__ = (function(value) {
  return ScalaJS.bV(this.$$colon$eq__O__V(value))
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.update__O__ = (function(value$2) {
  return ScalaJS.bV(this.update__O__V(value$2))
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.apply__ = (function() {
  return this.apply__O()
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.transform__Lscala_Function1__ = (function(cb) {
  return ScalaJS.bV(this.transform__Lscala_Function1__V(cb))
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.getAndTransform__Lscala_Function1__ = (function(cb$2) {
  return this.getAndTransform__Lscala_Function1__O(cb$2)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.transformAndGet__Lscala_Function1__ = (function(cb$3) {
  return this.transformAndGet__Lscala_Function1__O(cb$3)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.transformAndExtract__Lscala_Function1__ = (function(cb$4) {
  return this.transformAndExtract__Lscala_Function1__O(cb$4)
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.get__ = (function() {
  return this.get__O()
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.set__O__ = (function(update) {
  return ScalaJS.bV(this.set__O__V(update))
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.compareAndSet__O__O__ = (function(expect, update$2) {
  return ScalaJS.bZ(this.compareAndSet__O__O__Z(expect, update$2))
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.getAndSet__O__ = (function(update$3) {
  return this.getAndSet__O__O(update$3)
});
/** @constructor */
ScalaJS.inheritable.monifu_concurrent_atomic_AtomicAny = (function() {
  /*<skip>*/
});
ScalaJS.inheritable.monifu_concurrent_atomic_AtomicAny.prototype = ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype;
ScalaJS.is.monifu_concurrent_atomic_AtomicAny = (function(obj) {
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.monifu_concurrent_atomic_AtomicAny)))
});
ScalaJS.as.monifu_concurrent_atomic_AtomicAny = (function(obj) {
  if ((ScalaJS.is.monifu_concurrent_atomic_AtomicAny(obj) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwClassCastException(obj, "monifu.concurrent.atomic.AtomicAny")
  }
});
ScalaJS.isArrayOf.monifu_concurrent_atomic_AtomicAny = (function(obj, depth) {
  return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.monifu_concurrent_atomic_AtomicAny)))
});
ScalaJS.asArrayOf.monifu_concurrent_atomic_AtomicAny = (function(obj, depth) {
  if ((ScalaJS.isArrayOf.monifu_concurrent_atomic_AtomicAny(obj, depth) || (obj === null))) {
    return obj
  } else {
    ScalaJS.throwArrayCastException(obj, "Lmonifu.concurrent.atomic.AtomicAny;", depth)
  }
});
ScalaJS.data.monifu_concurrent_atomic_AtomicAny = new ScalaJS.ClassTypeData({
  monifu_concurrent_atomic_AtomicAny: 0
}, false, "monifu.concurrent.atomic.AtomicAny", ScalaJS.data.java_lang_Object, {
  monifu_concurrent_atomic_AtomicAny: 1,
  monifu_concurrent_atomic_Atomic: 1,
  java_lang_Object: 1
});
ScalaJS.c.monifu_concurrent_atomic_AtomicAny.prototype.$classData = ScalaJS.data.monifu_concurrent_atomic_AtomicAny;
//@ sourceMappingURL=AtomicAny.js.map
New to GrepCode? Check out our FAQ X