public final class AttributeDefinitionCollection extends Object implements Iterable, Serializable
IAttributeDefinitions. An IAttributeDefinition can
be looked up either via an integer index or by attribute name. Lookups by attribute name are case-insensitive.| Constructor and Description |
|---|
AttributeDefinitionCollection(AttributeDefinitionCollection collection)
Creates a
AttributeValueCollection from another AttributeValueCollection. |
AttributeDefinitionCollection(List list)
Creates a
AttributeValueCollection from the specified List of IAttributeDefinitions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object o)
Returns
true if this list contains the specified object. |
boolean |
equals(Object o) |
IAttributeDefinition |
get(int index)
Returns the
IAttributeDefinition at the specified index. |
IAttributeDefinition |
get(String name)
Returns an
IAttributeDefinition with the specified name. |
int |
hashCode() |
int |
indexOf(Object o)
Returns the index of the specified Object or -1 if not found.
|
boolean |
isEmpty()
Returns
true if this list is empty; false if not. |
Iterator |
iterator()
Returns an
Iterator over this list of IAttributeDefinitions. |
int |
lastIndexOf(Object o)
Returns the last index of the specified Object or -1 if not found.
|
ListIterator |
listIterator()
Returns a
ListIterator to iterate over this list of IAttributeDefinitions. |
ListIterator |
listIterator(int index)
Returns a
ListIterator to iterate over this list of IAttributeDefinitions. |
int |
size()
Returns the number of
IAttributeDefinitions in this list. |
List |
toList()
Returns this
AttributeDefinitionCollection as a List<IAttributeDefinition>. |
getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic AttributeDefinitionCollection(List list)
AttributeValueCollection from the specified List of IAttributeDefinitions.list - the List of IAttributeDefinitions to create this list with.IllegalArgumentException - if the specified list is null.public AttributeDefinitionCollection(AttributeDefinitionCollection collection)
AttributeValueCollection from another AttributeValueCollection.collection - the AttributeDefinitionCollection to create this list with.IllegalArgumentException - if he specified list is null.public int size()
IAttributeDefinitions in this list.IAttributeDefinitions in this list.public boolean isEmpty()
true if this list is empty; false if not.true if this list is empty; false if not.public boolean contains(Object o)
true if this list contains the specified object. The specified object can either be an
IAttributeDefinition or a String.o - The object to test for containment within this List.true if this list contains the specified object.public Iterator iterator()
Iterator over this list of IAttributeDefinitions. The returned
Iterator's remove method will throw an UnsupportedOperationException when invoked.public IAttributeDefinition get(String name)
IAttributeDefinition with the specified name. More than one IAttributeDefinition can have the same name
so caution must be used in assuming that the IAttributeDefinition returned from this method is the only
IAttributeDefinition with the specified name in this collection.name - The name of the IAttributeDefinition to return.IAttributeDefinition with the specified name.public IAttributeDefinition get(int index)
IAttributeDefinition at the specified index.index - The index in the list to get the IAttributeDefinition from.IAttributeDefinition at the specified index.public int indexOf(Object o)
Object may be either an IAttributeDefinition or
a String. If a String is specified then the index of the first IAttributeDefinition in the list with the specified
name will be returned.o - The IAttributeDefinition or attribute definition name to get the index of.public int lastIndexOf(Object o)
IAttributeDefinition or a String. If a String is specified then the index of the last IAttributeDefinition in the
list with the specified name will be returned.o - The IAttributeDefinition or attribute definition name to get the index of.public ListIterator listIterator()
ListIterator to iterate over this list of IAttributeDefinitions. The Iterator is placed just before the
first item in the list. Calling Iterator.remove(), ListIterator.add(Object), or
ListIterator.set(Object) on this iterator will result in an UnsupportedOperationException being thrown.ListIterator to iterate over this list of IAttributeDefinitions.public ListIterator listIterator(int index)
ListIterator to iterate over this list of IAttributeDefinitions. The Iterator is placed just before the
specified item in the list. Calling Iterator.remove() on this iterator will result in an
UnsupportedOperationException being thrown.index - The index to place the Iterator at.ListIterator to iterate over this list of IAttributeDefinitions.public List toList()
AttributeDefinitionCollection as a List<IAttributeDefinition>. Changes
to this AttributeDefinitionCollection are not reflected in the returned List and vise-versa.AttributeDefinitionCollection as a List<IAttributeDefinition>.© 2007, 2022 Precisely. All rights reserved.