ArrayList4<E> Class

Summary

Transparent activatable ArrayList implementation.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Collections
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IList<E>"] Type-.->Interface1["IList"] Type-.->Interface2["IActivatable"] click Interface2 "/db4o-gpl-doc/output/api/Db4objects.Db4o.TA/IActivatable" Type["ArrayList4<E>"] class Type type-node

Syntax

[Obsolete("Use Db4objects.Db4o.Collections.ActivatableList instead")]
public class ArrayList4<E> : IList<E>, IList, IActivatable

Remarks

Transparent activatable ArrayList implementation. Implements IList interface using an array to store elements. Each ArrayList4 instance has a capacity, which indicates the size of the internal array.

When instantiated as a result of a query, all the internal members are NOT activated at all. When internal members are required to perform an operation, the instance transparently activates all the members.

Attributes

Type Description
ObsoleteAttribute

Type Parameters

Name Description
E

Constructors

Name Summary
ArrayList4() Initializes a new collection with the initial capacity = 10.
ArrayList4(ICollection<E>) Initializes a collection with the members of the parameter collection.
ArrayList4(int) Initializes a collection of the specified initial capacity.

Properties

Name Value Summary
Count int
Returns the size of the collection.
IsFixedSize bool
IsReadOnly bool
IsSynchronized bool
SyncRoot Object
this[int] E

Methods

Name Value Summary
Activate(ActivationPurpose) void
activate basic implementation.
Add(E) void
Add(Object) int
AddRange(IEnumerable<E>) void
BinarySearch(E, IComparer<E>) int
BinarySearch(E) int
BinarySearch(int, int, E, IComparer<E>) int
Bind(IActivator) void
bind basic implementation.
Clear() void
Removes all elements from the collection.
Contains(E) bool
Contains(Object) bool
ConvertAll<TOutput>(Converter<E, TOutput>) ArrayList4<TOutput>
CopyTo(Array, int) void
CopyTo(E[], int) void
EnsureCapacity(int) void
Resizes the collection capacity to the specified size if the current capacity is less than the parameter value.
Exists(Predicate<E>) bool
Find(Predicate<E>) E
FindAll(Predicate<E>) ArrayList4<E>
FindIndex(int, int, Predicate<E>) int
FindLast(Predicate<E>) E
FindLastIndex(int, int, Predicate<E>) int
ForEach(Action<E>) void
Get(int) E
Returns the collection element at the specified index.
GetEnumerator() IEnumerator<E>
IndexOf(E) int
IndexOf(Object) int
Insert(int, E) void
Insert(int, Object) void
InsertRange(int, IEnumerable<E>) void
Remove(E) bool
Remove(Object) void
RemoveAt(int) void
RemoveRange(int, int) void
Sort(int, int, IComparer<E>) void
ToArray() E[]
ToString() string
TrimExcess() void
Resizes the collection to its actual size.
TrueForAll(Predicate<E>) bool

See Also

  • System.Collections.ArrayList
  • Db4objects.Db4o.TA.IActivatable