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
originalPatternOccurrences
PatternOccurrences(long)
Represents how many times a pattern has been observed.
public PatternOccurrences(long Value)
Parameters
ValuelongThe actual value.
Fields
None
Represents no occurrences at all.
public static readonly PatternOccurrences None
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out long)
public void Deconstruct(out long Value)
Parameters
Valuelong
Equals(PatternOccurrences?)
public virtual bool Equals(PatternOccurrences? other)
Parameters
otherPatternOccurrences
Returns
Equals(ConceptAs<long>?)
public override sealed bool Equals(ConceptAs<long>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
builderStringBuilder
Returns
Operators
operator ==(PatternOccurrences?, PatternOccurrences?)
public static bool operator ==(PatternOccurrences? left, PatternOccurrences? right)
Parameters
leftPatternOccurrencesrightPatternOccurrences
Returns
implicit operator PatternOccurrences(int)
Implicitly convert from an int to PatternOccurrences.
public static implicit operator PatternOccurrences(int value)
Parameters
valueintValue to convert from.
Returns
implicit operator PatternOccurrences(long)
Implicitly convert from a long to PatternOccurrences.
public static implicit operator PatternOccurrences(long value)
Parameters
valuelongValue to convert from.
Returns
operator !=(PatternOccurrences?, PatternOccurrences?)
public static bool operator !=(PatternOccurrences? left, PatternOccurrences? right)
Parameters
leftPatternOccurrencesrightPatternOccurrences