C# Class SIL.FieldWorks.Common.Framework.DetailControls.ObjSeqHashMap

An object sequence hash map represents a mapping from sequences of objects to sequences of objects. The key may be anything that implements IList. The value is also a list. It is expected that very commonly only one value will be stored for a given key. The implementation is optimized for this by storing the object directly rather than a sequence holding the one object. Two objects are typically stored as an array, three or more as an ArrayList. (This means lists of lists don't work.)
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IList keyList, Slice obj ) : void

Add the item to the list associated with this key.

ClearUnwantedPart ( bool differentObject ) : void

GetSliceToReuse ( string className ) : Slice

ObjSeqHashMap ( ) : System

Remove ( IList keyList, Slice obj ) : void

Remove the argument object from the indicated collection. Currently it is not considered an error if the object is not found, just nothing happens.

this ( IList keyList ) : IList

Private Methods

Méthode Description
Report ( ) : void

Debugging code for investigating slice reuse bugs.

Method Details

Add() public méthode

Add the item to the list associated with this key.
public Add ( IList keyList, Slice obj ) : void
keyList IList
obj Slice
Résultat void

ClearUnwantedPart() public méthode

public ClearUnwantedPart ( bool differentObject ) : void
differentObject bool
Résultat void

GetSliceToReuse() public méthode

public GetSliceToReuse ( string className ) : Slice
className string
Résultat Slice

ObjSeqHashMap() public méthode

public ObjSeqHashMap ( ) : System
Résultat System

Remove() public méthode

Remove the argument object from the indicated collection. Currently it is not considered an error if the object is not found, just nothing happens.
public Remove ( IList keyList, Slice obj ) : void
keyList IList
obj Slice
Résultat void

this() public méthode

public this ( IList keyList ) : IList
keyList IList
Résultat IList