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

dregex.impl.State.scala Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package dregex.impl

import java.util.concurrent.atomic.AtomicInteger

class State() {
  val id = State.counter.getAndIncrement()
  override def toString() = s"s$id"
}

object State {
  private val counter = new AtomicInteger
  val NullState = new State
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy