Skip to main content

ILimitedPresentationObjectCollectionBase<T> Interface

Defines methods and properties for managing a collection of presentation objects.

Declaration

public interface ILimitedPresentationObjectCollectionBase<T> extends Iterable<T>

Type Parameters

Name Description
T

A collection of presentation objects.

Implements

java.lang.Iterable<T>

Methods

add(T item) Method

Adds an element to the collection.

Declaration

public abstract void add(T item)

Parameters

Name Type Description
item T

The element to add.

get(int index) Method

Returns an element at the specified index within the collection.

Declaration

public abstract T get(int index)

Parameters

Name Type Description
index int

The zero-based index of the element to retrieve.

Returns

Type Description
T

The element at the specified index.

insert(int index, T item) Method

Inserts an element at the specified index.

Declaration

public abstract void insert(int index, T item)

Parameters

Name Type Description
index int

The zero-based index at which to insert the element.

item T

The element to insert.

remove(T item) Method

Removes the first occurrence of the specified element.

Declaration

public abstract boolean remove(T item)

Parameters

Name Type Description
item T

The element to remove.

Returns

Type Description
boolean

true if the element was removed; otherwise, false.

removeAt(int index) Method

Removes the element at the specified index.

Declaration

public abstract void removeAt(int index)

Parameters

Name Type Description
index int

The zero-based index of the element to remove.

resetTo(List<T> items) Method

Replaces the collection content with the specified elements.

Declaration

public abstract void resetTo(List<T> items)

Parameters

Name Type Description
items java.util.List<T>

The elements used to reset the collection.

set(int index, T value) Method

Replaces the element at the specified index with the specified value.

Declaration

public abstract void set(int index, T value)

Parameters

Name Type Description
index int

The zero-based index of the element to replace.

value T

The new element value.