Package com.aspose.tasks
Class PropertyKeyedCollection<T extends Property>
- java.lang.Object
-
- com.aspose.tasks.PropertyCollection<T>
-
- com.aspose.tasks.PropertyKeyedCollection<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
BuiltInProjectPropertyCollection,CustomProjectPropertyCollection
public abstract class PropertyKeyedCollection<T extends Property> extends PropertyCollection<T> implements Collection<T>
A base class of collection of properties.
T: The type of property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanadd(T item)Creates a new custom property.booleanaddAll(Collection<? extends T> c)voidclear()booleancontains(Object item)booleancontains(String name)Determines whether theAspose.Tasks.Properties.PropertyCollection{T}contains a property with the specified name.booleancontainsAll(Collection<?> c)Tget_Item(String name)Gets the Property associated with the specified key.Collection<String>getNames()Gets the collection of all property names.booleanisEmpty()abstract booleanisReadOnly()Gets a value indicating whether this collection is read-only; otherwise, false.booleanremove(Object item)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Gets the number of properties in the collection.Object[]toArray()<T1> T1[]toArray(T1[] a)-
Methods inherited from class com.aspose.tasks.PropertyCollection
iterator
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(T item)
Creates a new custom property.
- Specified by:
addin interfaceCollection<T extends Property>- Parameters:
item- The property to add.
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T extends Property>
-
contains
public final boolean contains(String name)
Determines whether the
Aspose.Tasks.Properties.PropertyCollection{T}contains a property with the specified name.- Parameters:
name- The name of a property- Returns:
- true if the
Aspose.Tasks.Properties.PropertyCollection{T}contains a property with the specified name; otherwise, false.
-
contains
public final boolean contains(Object item)
- Specified by:
containsin interfaceCollection<T extends Property>
-
getNames
public final Collection<String> getNames()
Gets the collection of all property names.
- Returns:
- the collection of all property names.
-
get_Item
public final T get_Item(String name)
Gets the Property associated with the specified key.
- Parameters:
name- The name of the Property to get.- Returns:
- The Property associated with the specified name.
-
isReadOnly
public abstract boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
- Returns:
- a value indicating whether this collection is read-only; otherwise, false.
-
remove
public final boolean remove(Object item)
- Specified by:
removein interfaceCollection<T extends Property>- Parameters:
item-- Returns:
-
size
public final int size()
Gets the number of properties in the collection.
- Specified by:
sizein interfaceCollection<T extends Property>- Returns:
- the number of properties in the collection.
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T extends Property>- Parameters:
c-- Returns:
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAllin interfaceCollection<T extends Property>- Parameters:
c-- Returns:
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<T extends Property>- Parameters:
c-- Returns:
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<T extends Property>- Parameters:
c-- Returns:
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T extends Property>- Returns:
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<T extends Property>- Returns:
-
toArray
public <T1> T1[] toArray(T1[] a)
- Specified by:
toArrayin interfaceCollection<T extends Property>- Type Parameters:
T1-- Parameters:
a-- Returns:
-
-