All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.arizona.sista.struct.MutableNumber.scala Maven / Gradle / Ivy

package edu.arizona.sista.struct

/**
 * Stores a mutable number of type T
 * User: mihais
 * Date: 3/18/13
 */
class MutableNumber[T](var value:T) extends Serializable {
  override def hashCode = value.hashCode

  override def equals(other:Any):Boolean = {
    other match {
      case that:MutableNumber[T] => value == that.value
      case _ => false
    }
  }

  override def toString:String = value.toString
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy