Database

object Database

Object encapsulating CODATA2010 constants.

class Object
trait Matchable
class Any

Value members

Concrete methods

Return a vector containing all database keys.

Return a vector containing all database keys.

def uncertainty(string: String): Double

Look up the uncertainty of a specific entry. Name must be an exact match with the entry.

Look up the uncertainty of a specific entry. Name must be an exact match with the entry.

def uncertainty(regex: Regex): HashMap[String, Double]

Look up the uncertainty of entries with name matching the given regex expression.

Look up the uncertainty of entries with name matching the given regex expression.

Value parameters:
regex

enter a regex object (i.e. """regex expression""".r)

Returns:

returns a vector of (String, Double) objects, which contain the full entry name (String) and the uncertainty (Double)

def unit(string: String): String

Look up the unit of a specific entry. Name must be an exact match with the entry.

Look up the unit of a specific entry. Name must be an exact match with the entry.

def unit(regex: Regex): HashMap[String, String]

Look up the unit of entries with name matching the given regex expression.

Look up the unit of entries with name matching the given regex expression.

Value parameters:
regex

enter a regex object (i.e. """regex expression""".r)

Returns:

returns a vector of (String, Double) objects, which contain the full entry name (String) and the uncertainty (Double)

def value(string: String): Double

Look up the value of a specific entry. Name must be an exact match with the entry.

Look up the value of a specific entry. Name must be an exact match with the entry.

def value(regex: Regex): HashMap[String, Double]

Look up the value of entries with name matching the given regex expression.

Look up the value of entries with name matching the given regex expression.

Value parameters:
regex

enter a regex object (i.e. """regex expression""".r)

Returns:

returns a vector of (String, Double) objects, which contain the full entry name (String) and the value (Double)