Levels

com.softinio.verdict4s.algebra.Levels
See theLevels companion object
final class Levels[A]

The ordered rubric of a Score question, plus how to read a level back.

Unlike Options this is a List, not a sorted map: the levels are ordered, and their position is their meaning — the service returns level indices as "0", "1", and so on, keyed to this order.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def at(index: Int): Option[A]

The value at a level index, if the index is in range.

The value at a level index, if the index is in range.

Attributes

def indexOf(value: A): Int

The level index of a value, or -1 if it is not one of the levels.

The level index of a value, or -1 if it is not one of the levels.

Attributes

def size: Int

How many levels this rubric has.

How many levels this rubric has.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields