PropertyKeyedCollection

Inheritance: java.lang.Object, com.aspose.tasks.PropertyCollection

All Implemented Interfaces: java.util.Collection

public abstract class PropertyKeyedCollection<T> extends PropertyCollection<T> implements Collection<T>

A base class of collection of properties.

T : he type of property.

Methods

MethodDescription
<T1>toArray(T1[] a){@inheritDoc}
add(T item)Creates a new custom property.
addAll(Collection<? extends T> c){@inheritDoc}
clear(){@inheritDoc}
contains(Object item){@inheritDoc}
contains(String name)Determines whether the Aspose.Tasks.Properties.PropertyCollection<T> contains a property with the specified name.
containsAll(Collection<?> c){@inheritDoc}
getNames()Gets the collection of all property names.
get_Item(String name)Gets the Property associated with the specified key.
isEmpty(){@inheritDoc}
isReadOnly()Gets a value indicating whether this collection is read-only; otherwise, false.
remove(Object item){@inheritDoc}
removeAll(Collection<?> c){@inheritDoc}
retainAll(Collection<?> c){@inheritDoc}
size()Gets the number of properties in the collection.
toArray(){@inheritDoc}

<T1>toArray(T1[] a)

public T1[] <T1>toArray(T1[] a)

Parameters:

ParameterTypeDescription
aT1[]{@inheritDoc}

Returns: T1[] - {@inheritDoc}

add(T item)

public final boolean add(T item)

Creates a new custom property.

Parameters:

ParameterTypeDescription
itemTThe property to add.

Returns: boolean

addAll(Collection<? extends T> c)

public boolean addAll(Collection<? extends T> c)

Parameters:

ParameterTypeDescription
cjava.util.Collection<? extends T>{@inheritDoc}

Returns: boolean - {@inheritDoc}

clear()

public void clear()

contains(Object item)

public final boolean contains(Object item)

Parameters:

ParameterTypeDescription
itemjava.lang.Object

Returns: boolean

contains(String name)

public final boolean contains(String name)

Determines whether the Aspose.Tasks.Properties.PropertyCollection<T> contains a property with the specified name.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of a property

Returns: boolean - true if the Aspose.Tasks.Properties.PropertyCollection<T> contains a property with the specified name; otherwise, false.

containsAll(Collection<?> c)

public boolean containsAll(Collection<?> c)

Parameters:

ParameterTypeDescription
cjava.util.Collection<?>{@inheritDoc}

Returns: boolean - {@inheritDoc}

getNames()

public final Collection<String> getNames()

Gets the collection of all property names.

Returns: java.util.Collection<java.lang.String> - the collection of all property names.

get_Item(String name)

public final T get_Item(String name)

Gets the Property associated with the specified key.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe name of the Property to get.

Returns: T - The Property associated with the specified name.

isEmpty()

public boolean isEmpty()

Returns: boolean - {@inheritDoc}

isReadOnly()

public abstract boolean isReadOnly()

Gets a value indicating whether this collection is read-only; otherwise, false.

Returns: boolean - a value indicating whether this collection is read-only; otherwise, false.

remove(Object item)

public final boolean remove(Object item)

Parameters:

ParameterTypeDescription
itemjava.lang.Object{@inheritDoc}

Returns: boolean - {@inheritDoc}

removeAll(Collection<?> c)

public boolean removeAll(Collection<?> c)

Parameters:

ParameterTypeDescription
cjava.util.Collection<?>{@inheritDoc}

Returns: boolean - {@inheritDoc}

retainAll(Collection<?> c)

public boolean retainAll(Collection<?> c)

Parameters:

ParameterTypeDescription
cjava.util.Collection<?>{@inheritDoc}

Returns: boolean - {@inheritDoc}

size()

public final int size()

Gets the number of properties in the collection.

Returns: int - the number of properties in the collection.

toArray()

public Object[] toArray()

Returns: java.lang.Object[] - {@inheritDoc}