Sequential

com.phasmidsoftware.lascala.Sequential
trait Sequential[T]

This trait defines the concept of something which is part of a sequence, i.e. something which has a next instance.

Created by scalaprof on 7/11/17.

Type parameters

T

the underlying type of this Sequential NOTE: once Dotty comes out, we may be able to require that T implement Ordering right here.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def next(isSnapshot: Boolean = ...): Try[T]

Method to try to create a next instance.

Method to try to create a next instance.

Value parameters

isSnapshot

(defaults to false) If true, then the next Sequential will be a snapshot. The expected behavior is that when isSnapshot changes from false to true, it will be accompanied by a change in sequence (where the new Sequential is ordered after this), otherwise not.

Attributes

Returns

Try[T]