DateFormatCollection
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public abstract class DateFormatCollection implements Iterable<DateFormat>
Represents a collection of DateFormat objects.
Learn more
| Constructor | Description |
|---|---|
| DateFormatCollection() |
| Method | Description |
|---|---|
| addItem(DateFormat item) | Adds an date format object to the collection. |
| clear() | Removes all elements from the collection. |
| containsItem(DateFormat item) | Determines whether the collection contains a specific item. |
| copyToTArray(DateFormat[] array, int arrayIndex) | Copies the elements of the collection to an Array , starting at a particular Array index. |
| size() | Gets the number of elements contained in the collection. |
| isReadOnly() | Gets a value indicating whether the collection is read-only. |
| removeItem(DateFormat item) | Removes the first occurrence of a specific element from the collection. |
| iterator() | Returns an enumerator that iterates through the collection. |
public DateFormatCollection()
public abstract void addItem(DateFormat item)
Adds an date format object to the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | DateFormat | The date format object to add to the collection. |
public abstract void clear()
Removes all elements from the collection.
public abstract boolean containsItem(DateFormat item)
Determines whether the collection contains a specific item.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | DateFormat | The item to locate in the collection. |
Returns: boolean - true if item is found in the collection; otherwise, false .
public abstract void copyToTArray(DateFormat[] array, int arrayIndex)
Copies the elements of the collection to an Array , starting at a particular Array index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | DateFormat[] | The one-dimensional Array that is the destination of the elements copied from the collection. |
| arrayIndex | int | The zero-based index in array at which copying begins. |
public abstract int size()
Gets the number of elements contained in the collection.
Returns: int - The number of elements contained in the collection.
public abstract boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
Returns: boolean - true if the collection is read-only; otherwise, false .
public abstract boolean removeItem(DateFormat item)
Removes the first occurrence of a specific element from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | DateFormat | The item to remove from the collection. |
Returns: boolean - true if item was successfully removed from the collection; otherwise, false . This method also returns false if item is not found in the collection.
public abstract Iterator<DateFormat> iterator()
Returns an enumerator that iterates through the collection.
Returns: java.util.Iterator<com.groupdocs.search.options.DateFormat> - An enumerator that can be used to iterate through the collection.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.