Package com.aspose.tasks
Class PropertyKeyedCollection<T extends Property>
- java.lang.Object
-
- com.aspose.tasks.PropertyCollection<T>
-
- com.aspose.tasks.PropertyKeyedCollection<T>
-
- Type Parameters:
T
- he type of property.
- 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
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:
add
in interfaceCollection<T extends Property>
- Parameters:
item
- The property to add.
-
clear
public void clear()
- Specified by:
clear
in 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:
contains
in 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:
remove
in interfaceCollection<T extends Property>
- Parameters:
item
-- Returns:
-
size
public final int size()
Gets the number of properties in the collection.
- Specified by:
size
in interfaceCollection<T extends Property>
- Returns:
- the number of properties in the collection.
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<T extends Property>
- Parameters:
c
-- Returns:
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll
in interfaceCollection<T extends Property>
- Parameters:
c
-- Returns:
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<T extends Property>
- Parameters:
c
-- Returns:
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<T extends Property>
- Parameters:
c
-- Returns:
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<T extends Property>
- Returns:
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<T extends Property>
- Returns:
-
toArray
public <T1> T1[] toArray(T1[] a)
- Specified by:
toArray
in interfaceCollection<T extends Property>
- Parameters:
a
-- Returns:
-
-