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.)
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method 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

Method Description
Report ( ) : void

Debugging code for investigating slice reuse bugs.

Method Details

Add() public method

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

ClearUnwantedPart() public method

public ClearUnwantedPart ( bool differentObject ) : void
differentObject bool
return void

GetSliceToReuse() public method

public GetSliceToReuse ( string className ) : Slice
className string
return Slice

ObjSeqHashMap() public method

public ObjSeqHashMap ( ) : System
return System

Remove() public method

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
return void

this() public method

public this ( IList keyList ) : IList
keyList IList
return IList