public class RateCollection extends AbstractList<Rate>
Represents a collection which contains Rate
objects.
Modifier and Type | Method and Description |
---|---|
Rate |
add(Date ratesFrom)
Adds a new
Rate instance to this collection. |
void |
clear()
Removes all items from the collection.
|
Rate |
get(int index)
(@inheritDoc}
|
int |
getCount()
Deprecated.
Use size() instead.
|
Resource |
getParentResource()
Returns parent
Resource object for this collection. |
Rate |
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.
|
boolean |
remove(Object item)
Removes Rate instance from this collection.
|
int |
size()
Returns the number of elements contained in the RateCollection.
|
List<Rate> |
toList()
Converts the RateCollection object to a list of
Rate objects. |
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
@Deprecated public int getCount()
Returns the number of elements contained in the RateCollection.
Read-only int
.
public Resource getParentResource()
Returns parent Resource
object for this collection.
Resource
instance which is parent for this object.
Read-only Resource
object.
public Rate add(Date ratesFrom)
Adds a new Rate
instance to this collection.
ratesFrom
- The date the new rate comes into effect.Rate
instance.public void clear()
clear
in interface Collection<Rate>
clear
in interface List<Rate>
clear
in class AbstractList<Rate>
public Rate get(int index)
public boolean remove(Object item)
remove
in interface Collection<Rate>
remove
in interface List<Rate>
remove
in class AbstractCollection<Rate>
item
- Rate
instance to remove.public Rate remove(int index)
public int size()
Returns the number of elements contained in the RateCollection.
size
in interface Collection<Rate>
size
in interface List<Rate>
size
in class AbstractCollection<Rate>
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.