Class DirectoryItemList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<DirectoryItem>
-
- org.silverpeas.web.directory.model.DirectoryItemList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<DirectoryItem>
,Collection<DirectoryItem>
,List<DirectoryItem>
,RandomAccess
public class DirectoryItemList extends ArrayList<DirectoryItem>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description DirectoryItemList()
DirectoryItemList(Collection<DirectoryItem> c)
DirectoryItemList(List<User> users)
DirectoryItemList(User[] users)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(User user)
void
add(CompleteContact contact)
void
addContactItems(DirectoryItemList contactItems)
void
addUsers(List<User> users)
void
addUsers(User[] users)
boolean
contains(CompleteContact completeContact)
DirectoryItem
getItemByUniqueId(String uniqueId)
Gets an item from the collection from an unique item identifier.DirectoryItemList
subList(int fromIndex, int toIndex)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
DirectoryItemList
public DirectoryItemList()
-
DirectoryItemList
public DirectoryItemList(User[] users)
-
DirectoryItemList
public DirectoryItemList(Collection<DirectoryItem> c)
-
-
Method Detail
-
add
public void add(User user)
-
addUsers
public void addUsers(User[] users)
-
add
public void add(CompleteContact contact)
-
addContactItems
public void addContactItems(DirectoryItemList contactItems)
-
contains
public boolean contains(CompleteContact completeContact)
-
subList
@Nonnull public DirectoryItemList subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<DirectoryItem>
- Overrides:
subList
in classArrayList<DirectoryItem>
-
getItemByUniqueId
public DirectoryItem getItemByUniqueId(String uniqueId)
Gets an item from the collection from an unique item identifier.- Parameters:
uniqueId
- the unique identifier from which an item is searched.- Returns:
- the item begin the unique identifier if any, null otherwise.
-
-