dregex.impl.State.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dregex_2.11 Show documentation
Show all versions of dregex_2.11 Show documentation
Deterministic Regular Expression Engine
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
}