UOPairT Structure |
Namespace: Bio.Util
public struct UOPair<T> : IEnumerable<T>, IEnumerable, IComparable<UOPair<T>> where T : Object, IComparable<T>
The UOPairT type exposes the following members.
Name | Description | |
---|---|---|
UOPairT |
Creates a new UOPair from new elements. The items may be the same and do not need to be in order. If T allows null, then null is allowed.
If exactly one of e1 and e2 is null, then First will be null and Second will be non-null.
The items must be IComparable{T}.
|
Name | Description | |
---|---|---|
ElementsAreSame |
True, if the elements are Equals; false, otherwise. If both elements are null, also true.
| |
First |
The first of the two sorted items.
| |
Second |
The second of the two sorted items.
|
Name | Description | |
---|---|---|
CompareTo |
Compares the UOPair to the other UOPair and returns an indication of their relative values (based on the ICompare of their elements).
| |
Equals |
Two UOPairs are equal if their (sorted) elements are equal.
(Overrides ValueTypeEquals(Object).) | |
GetEnumerator |
Enumerates the pair in sorted order
| |
GetHashCode |
A hashcode such that two UOPairs{T} with the same elements will have the same hashcode.
Depending on the subtypes, the hash code may be different on 32-bit and 64-bit machines
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
Either (UO e1 e2) -- if elements differ -- or (UO 2x e)
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality | ||
GreaterThan | ||
Inequality | ||
LessThan |
Name | Description | |
---|---|---|
AppendT(T) | Overloaded.
Yield an Enumeration of the list with the item appended to the end
(Defined by IEnumerableExtensions.) | |
AppendT(IEnumerableT) | Overloaded.
Yield a concatenation of the two Enumerable lists
(Defined by IEnumerableExtensions.) | |
ElementAtT |
Returns the element at a specified index in a sequence.
(Defined by IEnumerableExtensions.) | |
ForEachT(ActionT) | Overloaded.
Calls an action on each element of a sequence. The action takes one argument: an element. It has no return value.
(Defined by IEnumerableExtensions.) | |
ForEachT(ActionT, Int32) | Overloaded.
Calls an action on each element of a sequence. The action takes two arguments: an element and the index of the element.
It has no return value.
(Defined by IEnumerableExtensions.) | |
ShuffleT |
Shuffles the elements of a sequence.
(Defined by IEnumerableExtensions.) | |
StringJoin | Overloaded.
Creates a string from a sequence of elements. No delimiter is used.
(Defined by IEnumerableExtensions.) | |
StringJoin(String) | Overloaded.
Creates a delimited string from a sequence of elements.
(Defined by IEnumerableExtensions.) | |
StringJoin(String, Int32, String) | Overloaded.
Creates a delimited string from a sequence of elements. At most maxLength elements will be used and "..." shows that more elements were in the list.
(Defined by IEnumerableExtensions.) | |
SubSequenceT |
Take the items from a sequence starting with item # start (index 0) and contining for count items.
(Defined by IEnumerableExtensions.) | |
ToHashSetT | Overloaded.
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
(Defined by IEnumerableExtensions.) | |
ToHashSetT(IEqualityComparerT) | Overloaded.
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
(Defined by IEnumerableExtensions.) | |
ToQueueT |
Creates a Queue from a sequence. If the sequence is already a Queue, a new Queue is still created.
(Defined by IEnumerableExtensions.) |