Click or drag to resize

ObjectWithIdCollectionBaseT Class

Inheritance Hierarchy
SystemObject
  Omada.OE.ModelObjectWithIdCollectionBaseT
    More...

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class ObjectWithIdCollectionBase<T> : ICloneable, 
	IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
where T : class, IObjectWithId, ICloneable

Type Parameters

T

The ObjectWithIdCollectionBaseT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Public propertyIsEmpty
Public propertyIsReadOnly
Public propertyItem
Public propertySingleValue
Verify that the collection contains exactly one value and return that value
Public propertySortedById
Top
Methods
  NameDescription
Public methodAdd(T)
Public methodAdd(ObjectWithIdCollectionBaseT)
Public methodAddX(IEnumerableX)
Public methodAddX(ObjectWithIdCollectionBaseX)
Public methodAssign(IEnumerableT)
Public methodAssign(ObjectWithIdCollectionBaseT)
Public methodAssignX(ObjectWithIdCollectionBaseX)
Public methodBinarySearch
Public methodClear
Public methodClone
Public methodContains(Int32)
Returns true of the collection contains the object with the provided ID.
Public methodContains(T)
Returnerer om collection rummer objekt med samme id som obj.
Public methodContainsSameIds(IntegerList)
Public methodContainsSameIds(ObjectWithIdCollectionBaseT)
Returnerer true if the collection contains the same objects as the source. The collections must contain the same elements. The sort order is irrelevant and not considered. The objects are only compared in their ID.
Public methodConvertAllTOutput
Public methodCopyTo
Public methodCountPass
Count how many elements fullfill a predicate. The list is not modified.
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodExists
Check wether a predicate is true for at least one item in the list
Public methodFilter
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodFilterX(PredicateT)
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodFilterX(IFilterT)
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodFind
Public methodFindAll(PredicateT)
Public methodFindAll(PredicateT, ObjectWithIdCollectionBaseT)
Add all items for which the predicate is true to the result.
Public methodFindAllRESULTTYPE(PredicateT)
Public methodFindIndex
Public methodFindLast
Public methodFindLastIndex
Public methodForEach
Protected methodFormatExceptionMsg
Public methodGetById
Returns an object from the collection with the provided ID. If the collection is sorted (by id) then binary search is used, else it linear. Returns null if the ID is not found.
Public methodGetByIdCheck
Returns an object from the collection with the provided ID. If the collection is sorted (by id) then binary search is used, else it linear. Raises an exception if the ID is not found.
Public methodGetByIdList(IEnumerableInt32)
Public methodGetByIdListRESULTTYPE(IntegerList)
Public methodGetByIdListCheck(IntegerList)
Get a sublist of items having the ids in the idList. Throws exception if idList contains id not in the current collection
Public methodGetByIdListCheck(IEnumerableInt32)
Get a sublist of items having the ids in the idList. Throws exception if idList contains id not in the current collection
Public methodGetByIdMulti
Public methodGetByUId
Returns the object with the provided UID or null of the object is not found. The method can only by used on objects which implement the interface IObjectWithGuid!
Public methodGetByUIdCheck
Returns the object with the provided UID. An exception is raised if the object is not found The method can only by used on objects which implement the interface IObjectWithGuid!
Public methodGetDelimitedIdString
Public methodGetEnumerator
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetIdList
Public methodGetIndexById
Returns the index of the object from the collection with the provided ID. If the collection is sorted (by id) then binary search is used, else it linear. Returns -1 if the ID is not found.
Public methodGetIndexByUId
Returns the index of an object with the provided UID or -1 of the object is not found. The method can only by used on objects which implement the interface IObjectWithGuid!
Public methodGetRange
Unlike the list class, this may return less than count elements
Public methodHasCommonItems(IntegerList)
Returns true if the collection contains at least one element which is also in the source
Public methodHasCommonItems(ObjectWithIdCollectionBaseT)
Returns true if the collection contains at least one element which is also in the source
Public methodIndexOf
Public methodInsert
Public methodRemove(IEnumerableInt32)
Public methodRemove(IEnumerableT)
Public methodRemove(Int32)
Removes an object with the provided ID from the collection.
Public methodRemove(T)
Fjerner objekt med samme id som obj fra collection.
Public methodRemove(ObjectWithIdCollectionBaseT)
Public methodRemoveAll
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodRemoveAt
Public methodRemoveIdDuplets
Sorts the list (ascending) on id and removes id duplets
Public methodSetNotSortedById
Public methodSort(IComparerT)
Public methodSort(ComparisonT)
Public methodSortById
Public methodTrueForAll
Check wether a predicate is true for all items in the list
Top
Fields
  NameDescription
Protected fieldm_sortedById
Top
Extension Methods
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Top
See Also
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelObjectWithIdCollectionBaseT
    Omada.OE.ModelActions
    Omada.OE.ModelActivities
    Omada.OE.ModelActivityLinks
    Omada.OE.ModelActivityLogEntries
    Omada.OE.ModelAppStrings
    Omada.OE.ModelAppStringSources
    Omada.OE.ModelAppStringTypes
    Omada.OE.ModelAssigneeConstraints
    Omada.OE.ModelAssigneeRules
    Omada.OE.ModelAuthElementContexts
    Omada.OE.ModelAuthElements
    Omada.OE.ModelAuthRoles
    Omada.OE.ModelBaseProperties
    Omada.OE.ModelBrowserEventHandlers
    Omada.OE.ModelCodeAssemblies
    Omada.OE.ModelCodeMethodConfigs
    Omada.OE.ModelCodeMethodLogs
    Omada.OE.ModelCodeMethodParams
    Omada.OE.ModelCodeMethods
    Omada.OE.ModelConditionFields
    Omada.OE.ModelConditions
    Omada.OE.ModelConfigurationChangeSets
    Omada.OE.ModelControlElements
    Omada.OE.ModelCopyDefinitions
    Omada.OE.ModelCopyRuleFields
    Omada.OE.ModelCopyRules
    Omada.OE.ModelCopyRuleUsages
    Omada.OE.ModelDataExchangeConfigurationBases
    Omada.OE.ModelDataExchangeFlds
    Omada.OE.ModelDataExchangeLogs
    Omada.OE.ModelDataObjectCounterResults
    Omada.OE.ModelDataObjectCounters
    Omada.OE.ModelDataObjectFilterExpressions
    Omada.OE.ModelDataObjectFilters
    Omada.OE.ModelDataObjectPermissions
    Omada.OE.ModelDataObjects
    Omada.OE.ModelDataObjectSecurities
    Omada.OE.ModelDataObjectTypeProperties
    Omada.OE.ModelDataObjectTypes
    Omada.OE.ModelDataObjectVersionProperties
    Omada.OE.ModelDataObjectVersions
    Omada.OE.ModelDataObjectViewFields
    Omada.OE.ModelDataObjectViewForms
    Omada.OE.ModelEventDefinitions
    Omada.OE.ModelFiles
    Omada.OE.ModelFileVersions
    Omada.OE.ModelForms
    Omada.OE.ModelFormSectionBases
    Omada.OE.ModelFormSectionFields
    Omada.OE.ModelFormSectionFieldStates
    Omada.OE.ModelLangStrings
    Omada.OE.ModelLanguages
    Omada.OE.ModelMailDefinitions
    Omada.OE.ModelMailLogs
    Omada.OE.ModelMailTemplates
    Omada.OE.ModelMenuItems
    Omada.OE.ModelModificationFields
    Omada.OE.ModelModifications
    Omada.OE.ModelObjectWithIdCollectionT
    Omada.OE.ModelProcesses
    Omada.OE.ModelProcessEventDefinitions
    Omada.OE.ModelProcessGraphs
    Omada.OE.ModelProcessPhaseActivities
    Omada.OE.ModelProcessPhases
    Omada.OE.ModelPropertiesWithLogEntries
    Omada.OE.ModelQueuedMails
    Omada.OE.ModelReassignDefinitions
    Omada.OE.ModelReferenceInfos
    Omada.OE.ModelReferencePropertyAttributes
    Omada.OE.ModelReferencePropertyValues
    Omada.OE.ModelSequences
    Omada.OE.ModelServiceDimensions
    Omada.OE.ModelServiceRules
    Omada.OE.ModelSetPropertyValues
    Omada.OE.ModelSimpleAppStrings
    Omada.OE.ModelSimpleDataObjects
    Omada.OE.ModelStylesheets
    Omada.OE.ModelTimerLogs
    Omada.OE.ModelTimers
    Omada.OE.ModelTimeZones
    Omada.OE.ModelTransitionEventDefinitions
    Omada.OE.ModelTransitions
    Omada.OE.ModelUserGroups
    Omada.OE.ModelUserOrGroups
    Omada.OE.ModelUsers
    Omada.OE.ModelViewBases
    Omada.OE.ModelWebPageHelpContexts
    Omada.OE.ModelWorkItems
    Omada.OE.ModelWorkWeeks
    Omada.OE.Solution.OIM.ModelRoleAssignmentInfos