LocatorAny

org.saddle.locator.LocatorAny
class LocatorAny[T](sz: Int)(implicit evidence$1: ScalarTag[T]) extends Locator[T]

Attributes

Graph
Supertypes
trait Locator[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def contains(key: T): Boolean

Whether the instance contains the key

Whether the instance contains the key

Value parameters

key

The key to query

Attributes

def count(key: T): Int

Return the number of times the key was entered into the map

Return the number of times the key was entered into the map

Value parameters

key

The key to query

Attributes

def counts: Array[Int]

Returns counts associated with the keys in the same order as keys()

Returns counts associated with the keys in the same order as keys()

Attributes

def get(key: T): Int

Should return the first offset corresponding to the provided key, or -1 if none was found.

Should return the first offset corresponding to the provided key, or -1 if none was found.

Value parameters

key

The key to query

Attributes

def inc(key: T): Int

Increment the count for a key

Increment the count for a key

Value parameters

key

The key whose count should increment

Attributes

def keys: Array[T]

Return the keys contained in the map in original insertion order

Return the keys contained in the map in original insertion order

Attributes

def put(key: T, value: Int): Unit

Put a new key into the map along with an associated integer value.

Put a new key into the map along with an associated integer value.

Value parameters

key

Key to put into map

value

Value to associate with key

Attributes

def size: Int

Number of entries in the Locator map

Number of entries in the Locator map

Attributes

Concrete fields

val cts: HashMap[T, Int]
val keyOrder: Buffer[T]
val map: HashMap[T, Int]