Click or drag to resize

NumericTypeT, TType Class

Represents a Range of numeric values (with several chunks)
Inheritance Hierarchy
SystemObject
  SmartTests.RangesNumericTypeT, TType
    More...

Namespace:  SmartTests.Ranges
Assembly:  SmartTests (in SmartTests.dll) Version: 1.7.0
Syntax
public abstract class NumericType<T, TType> : INumericType<T>, 
	IType
where T : Object, IComparable<T>
where TType : class, Object, INumericType<T>

Type Parameters

T
The type of integers for this range
TType
The explicit Range Type (should be itself in sub-classes)

The NumericTypeT, TType type exposes the following members.

Constructors
  NameDescription
Protected methodNumericTypeT, TType
Initializes a new instance of the NumericTypeT, TType class
Top
Properties
  NameDescription
Public propertyChunks
The sorted list of non-overlapping chunks
Protected propertyMaxValue
Maximum value for type T
Protected propertyMinValue
Minimum value for type T
Top
Methods
  NameDescription
Public methodAbove(T)
Adds a chunk of numeric values above max
Public methodAbove(T, T)
adds a chunk of numeric values above max and returns a criteria for this range
Public methodAboveOrEqual(T)
Adds a chunk of numeric values above a min
Public methodAboveOrEqual(T, T)
Adds a chunk of numeric values above or equal to a min and returns a criteria for this range
Public methodBelow(T)
Adds a chunk of numeric values below min
Public methodBelow(T, T)
Creates a range of numeric values from min and returns a criteria for this range
Public methodBelowOrEqual(T)
Adds a chunk of numeric values below or equal to min
Public methodBelowOrEqual(T, T)
Adds a range of numeric values below or equal to min and returns a criteria for this range
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Protected methodEquals(TType)
Compare two NumericType
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetErrorValue
Returns any value for this range (all values have the same probability) as an error value
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Protected methodGetNext
Returns the value following n
Protected methodGetPrevious
Returns the value preceding n
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValidValue
Returns any value for this range (all values have the same probability)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRange(T, T)
Adds a chunk of numeric values
Public methodRange(T, T, T)
Adds a chunk of numeric values and returns a criteria for this range
Public methodRange(T, Boolean, T, Boolean)
Adds a chunk of numeric values
Public methodRange(T, Boolean, T, Boolean, T)
Adds a chunk of numeric values
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodToString(String)
Computes the string representing this range, when its type as a string is provided
Protected methodToString(T)
Returns the numeric value as a string.
Public methodValue(T)
Creates a range of one numeric value
Public methodValue(T, T)
Creates a range of one numeric value and returns a criteria for this range
Top
See Also
Inheritance Hierarchy