com.phasmidsoftware.gryphon.util

Members list

Type members

Classlikes

object FP

General functional programming utilities.

General functional programming utilities.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
FP.type
case class FPException(msg: String, eo: Option[Throwable] = ...) extends Exception

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class GraphException(m: String) extends Exception

A custom exception class for handling errors specifically related to graph operations.

A custom exception class for handling errors specifically related to graph operations.

Value parameters

m

The detail message associated with the exception, providing context or information about the graph-related error that occurred.

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object HasZero

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
HasZero.type
trait HasZero[T]

Trait to define a type class which supports the zero (identity) method.

Trait to define a type class which supports the zero (identity) method.

It's rather disappointing that Scala doesn't define this. I suppose we could get it from Cats but that seems like overkill.

Type parameters

T

the type of this trait.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object HasZeroDouble
trait HasZeroInt
object HasZeroInt
trait HasZeroUnit
object HasZeroUnit
Show all
class LoggingIterator[X](f: X => Unit)(xs: Iterator[X]) extends Iterator[X]

Type parameters

X

the underlying type.

Value parameters

f

the logging function.

xs

the incoming Iterator.

Attributes

Supertypes
trait Iterator[X]
trait IterableOnceOps[X, Iterator, Iterator[X]]
trait IterableOnce[X]
class Object
trait Matchable
class Any
Show all
object Parseable

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Parseable.type
trait Parseable[T]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class RandomIterator[T](iterable: Iterable[T])(implicit random: Random) extends Iterator[T]

A class providing an iterator that iterates through elements of a collection in a random order.

A class providing an iterator that iterates through elements of a collection in a random order.

This iterator removes elements from the underlying collection as it iterates over them. The randomness in the iteration order is determined by the implicit Random instance provided.

Type parameters

T

the type of elements contained in the iterator.

Value parameters

iterable

the collection of elements to be iterated in random order.

random

an implicit Random instance used for randomization.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Iterator[T]
trait IterableOnceOps[T, Iterator, Iterator[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all

An object providing utility methods for creating and working with RandomIterator.

An object providing utility methods for creating and working with RandomIterator.

The RandomIterator is used to iterate over a collection of elements in a random order.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class StringsParser extends JavaTokenParsers

Attributes

Supertypes
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
trait Stringy

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object TryUsing

Utility object to provide resource management methods using the Using construct.

Utility object to provide resource management methods using the Using construct.

The methods in this object ensure proper handling of resources by automatically closing or releasing them after they are used within a defined context.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TryUsing.type

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ViewableIterator[X](xs: Seq[X]) extends Iterator[X]

A wrapper class around a sequence that provides an iterator whose elements can be viewed in the debugger.

A wrapper class around a sequence that provides an iterator whose elements can be viewed in the debugger.

Type parameters

X

the type of elements this iterator will traverse.

Value parameters

xs

the sequence of elements to be traversed by the iterator.

Attributes

Constructor

Initializes the iterator with the given sequence.

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Iterator[X]
trait IterableOnceOps[X, Iterator, Iterator[X]]
trait IterableOnce[X]
class Object
trait Matchable
class Any
Show all