Class PatternOccurrences

Namespace
Cratis.Chronicle.Concepts.Patterns
Assembly
Cratis.Chronicle.dll

Represents how many times a pattern has been observed.

public record PatternOccurrences : ConceptAs<long>, IComparable<ConceptAs<long>>, IComparable<long>, IComparable, IEquatable<ConceptAs<long>>, IEquatable<PatternOccurrences>
Inheritance
PatternOccurrences
Implements
Inherited Members
Extension Methods

Constructors

PatternOccurrences(PatternOccurrences)

protected PatternOccurrences(PatternOccurrences original)

Parameters

original PatternOccurrences

PatternOccurrences(long)

Represents how many times a pattern has been observed.

public PatternOccurrences(long Value)

Parameters

Value long

The actual value.

Fields

None

Represents no occurrences at all.

public static readonly PatternOccurrences None

Field Value

PatternOccurrences

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out long)

public void Deconstruct(out long Value)

Parameters

Value long

Equals(PatternOccurrences?)

public virtual bool Equals(PatternOccurrences? other)

Parameters

other PatternOccurrences

Returns

bool

Equals(ConceptAs<long>?)

public override sealed bool Equals(ConceptAs<long>? other)

Parameters

other ConceptAs<long>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Increase()

Increase the number of occurrences.

public PatternOccurrences Increase()

Returns

PatternOccurrences

A new instance with the increased count.

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(PatternOccurrences?, PatternOccurrences?)

public static bool operator ==(PatternOccurrences? left, PatternOccurrences? right)

Parameters

left PatternOccurrences
right PatternOccurrences

Returns

bool

implicit operator PatternOccurrences(int)

Implicitly convert from an int to PatternOccurrences.

public static implicit operator PatternOccurrences(int value)

Parameters

value int

Value to convert from.

Returns

PatternOccurrences

implicit operator PatternOccurrences(long)

Implicitly convert from a long to PatternOccurrences.

public static implicit operator PatternOccurrences(long value)

Parameters

value long

Value to convert from.

Returns

PatternOccurrences

operator !=(PatternOccurrences?, PatternOccurrences?)

public static bool operator !=(PatternOccurrences? left, PatternOccurrences? right)

Parameters

left PatternOccurrences
right PatternOccurrences

Returns

bool