org.olap4j.metadata
Interface NamedList<E>

All Superinterfaces:
java.util.Collection<E>, java.lang.Iterable<E>, java.util.List<E>

public interface NamedList<E>
extends java.util.List<E>

Extension to List which allows access to members of the list by name as well as by ordinal.

Since:
Aug 22, 2006
Version:
$Id: NamedList.java 229 2009-05-08 19:11:29Z jhyde $
Author:
jhyde

Method Summary
 E get(java.lang.String name)
          Retrieves a member by name.
 int indexOfName(java.lang.String name)
          Returns the position where a member of a given name is found, or -1 if the member is not present.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

get

E get(java.lang.String name)
Retrieves a member by name.

Parameters:
name - name of the element to return
Returns:
the element of the list with the specified name, or null if there is no such element
See Also:
List.get(int)

indexOfName

int indexOfName(java.lang.String name)
Returns the position where a member of a given name is found, or -1 if the member is not present.

Parameters:
name - name of the element to return
Returns:
the index of element of the list with the specified name, or -1 if there is no such element
See Also:
List.indexOf(Object)

SourceForge.net_Logo