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.
Modifier and Type | Method and Description |
---|---|
boolean |
add(T item)
Creates a new custom property.
|
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object item) |
boolean |
contains(String name)
Determines whether the
Aspose.Tasks.Properties.PropertyCollection{T} contains a property with the
specified name. |
boolean |
containsAll(Collection<?> c) |
T |
get_Item(String name)
Gets the Property associated with the specified key.
|
Collection<String> |
getNames()
Gets the collection of all property names.
|
boolean |
isEmpty() |
abstract boolean |
isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
|
boolean |
remove(Object item) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size()
Gets the number of properties in the collection.
|
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
iterator
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, iterator, parallelStream, removeIf, spliterator, stream
public final boolean add(T item)
Creates a new custom property.
add
in interface Collection<T extends Property>
item
- The property to add.public void clear()
clear
in interface Collection<T extends Property>
public final boolean contains(String name)
Determines whether the Aspose.Tasks.Properties.PropertyCollection{T}
contains a property with the
specified name.
name
- The name of a propertyAspose.Tasks.Properties.PropertyCollection{T}
contains a property with the specified
name; otherwise, false.public final boolean contains(Object item)
contains
in interface Collection<T extends Property>
public final Collection<String> getNames()
Gets the collection of all property names.
public final T get_Item(String name)
Gets the Property associated with the specified key.
name
- The name of the Property to get.public abstract boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
public final boolean remove(Object item)
remove
in interface Collection<T extends Property>
item
- public final int size()
Gets the number of properties in the collection.
size
in interface Collection<T extends Property>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T extends Property>
c
- public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T extends Property>
c
- public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T extends Property>
c
- public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T extends Property>
c
- public boolean isEmpty()
isEmpty
in interface Collection<T extends Property>
public Object[] toArray()
toArray
in interface Collection<T extends Property>
public <T1> T1[] toArray(T1[] a)
toArray
in interface Collection<T extends Property>
T1
- a
-