Property | Type | Description | |
---|---|---|---|
Id | long |
Property | Type | Description | |
---|---|---|---|
alphabet | Alphabet | ||
building | int[] |
Method | Description | |
---|---|---|
BaseChain ( ) : System |
Initializes a new instance of the BaseChain class with 0 length.
|
|
BaseChain ( List |
Initializes a new instance of the BaseChain class from list of elements.
|
|
BaseChain ( int length ) : System |
Initializes a new instance of the BaseChain class.
|
|
BaseChain ( int building, Alphabet alphabet ) : System |
Initializes a new instance of the BaseChain class with provided building and alphabet. Only simple validation is made.
|
|
BaseChain ( int building, Alphabet alphabet, long id ) : System |
Initializes a new instance of the BaseChain class with provided building and alphabet. Only simple validation is made.
|
|
BaseChain ( string source ) : System |
Initializes a new instance of the BaseChain class from string. Each character becomes element.
|
|
ClearAndSetNewLength ( int length ) : void |
Deletes chain (building and alphabet) and creates new empty chain with given length.
|
|
Clone ( ) : IBaseObject |
Creates clone of this chain.
|
|
DeleteAt ( int index ) : void |
Removes given position.
|
|
Equals ( object other ) : bool |
The equals.
|
|
Get ( int index ) : IBaseObject |
Returns element by index.
|
|
GetLength ( ) : int |
The length of chain.
|
|
RemoveAt ( int index ) : void |
Removes element from given position.
|
|
Set ( IBaseObject item, int index ) : void |
Sets or replaces element in specified position.
|
Method | Description | |
---|---|---|
FillClone ( |
Fills the clone of chain with clones of alphabet and building.
|
public BaseChain ( List |
||
elements | List |
/// The elements. /// |
return | System |
public BaseChain ( int length ) : System | ||
length | int | /// The length of chain. /// |
return | System |
public BaseChain ( int building, Alphabet alphabet ) : System | ||
building | int | /// The building of chain. /// |
alphabet | Alphabet | /// The alphabet of chain. /// |
return | System |
public BaseChain ( int building, Alphabet alphabet, long id ) : System | ||
building | int | /// The building of chain. /// |
alphabet | Alphabet | /// The alphabet of chain. /// |
id | long | /// Id of sequence /// |
return | System |
public BaseChain ( string source ) : System | ||
source | string | /// The source string. /// |
return | System |
public ClearAndSetNewLength ( int length ) : void | ||
length | int | /// New chain length. /// |
return | void |
public DeleteAt ( int index ) : void | ||
index | int | /// Index of deleted position. /// |
return | void |
public Equals ( object other ) : bool | ||
other | object | /// The other. /// |
return | bool |
protected FillClone ( |
||
clone | /// The clone. /// | |
return | void |
public Get ( int index ) : IBaseObject | ||
index | int | /// Index of element. /// |
return | IBaseObject |
public RemoveAt ( int index ) : void | ||
index | int | /// Index of deleted element. /// |
return | void |
public Set ( IBaseObject item, int index ) : void | ||
item | IBaseObject | /// Element to set. /// |
index | int | /// Position in sequence. /// |
return | void |