Class ItemListBaseImpl<T extends SimpleItem>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.ItemListBaseImpl<T>
- Type Parameters:
T- The actual item type
- All Implemented Interfaces:
ItemListBase<T>,Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
- Direct Known Subclasses:
ItemListImpl
Standard implementation of ItemListBase interface based on the ArrayList class.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this list contains an element with the given technical key
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.booleanReturns true if this list contains an element with the given handle
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.Returns the item specified by the given technical key.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.Returns the item specified by the given handle.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.intReturns the index for the item with the given key.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.intReturns the index for the item with the given handle.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last. booleanRemove the given element from this list, if it exists.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.booleanRemove the given element from this list, if it exists.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.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, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
ItemListBaseImpl
public ItemListBaseImpl()
-
-
Method Details
-
contains
Description copied from interface:ItemListBaseReturns true if this list contains an element with the given handle
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
containsin interfaceItemListBase<T extends SimpleItem>- Parameters:
handle- handle to search for- Returns:
- true if this list contains an element with the given handle
-
contains
Description copied from interface:ItemListBaseReturns true if this list contains an element with the given technical key
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
containsin interfaceItemListBase<T extends SimpleItem>- Parameters:
techKey- techKey to search for- Returns:
- true if this list contains an element with the given technical key
-
get
Description copied from interface:ItemListBaseReturns the item specified by the given handle.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
getin interfaceItemListBase<T extends SimpleItem>- Parameters:
handle- the handle of the item that should be retrieved- Returns:
- the item with the given handle or
nullif no item for that key was found.
-
get
Description copied from interface:ItemListBaseReturns the item specified by the given technical key.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
getin interfaceItemListBase<T extends SimpleItem>- Parameters:
techKey- the technical key of the item that should be retrieved- Returns:
- the item with the given techical key or
nullif no item for that key was found.
-
indexOf
Description copied from interface:ItemListBaseReturns the index for the item with the given handle.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last. - Specified by:
indexOfin interfaceItemListBase<T extends SimpleItem>- Parameters:
handle- item handle- Returns:
- index in the item list, or -1 if such an element does not exists.
-
indexOf
Description copied from interface:ItemListBaseReturns the index for the item with the given key.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
indexOfin interfaceItemListBase<T extends SimpleItem>- Parameters:
techKey- item key- Returns:
- index in the item list, or -1 if such an element does not exists.
-
remove
Description copied from interface:ItemListBaseRemove the given element from this list, if it exists.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
removein interfaceItemListBase<T extends SimpleItem>- Parameters:
handle- of element to remove from the list- Returns:
- true if this list contained the specified element
-
remove
Description copied from interface:ItemListBaseRemove the given element from this list, if it exists.
Note - This implementation assumes that the list is small and performs a simple search running in the list from the first element to the last.- Specified by:
removein interfaceItemListBase<T extends SimpleItem>- Parameters:
techKey- index of element to remove from the list- Returns:
- true if this list contained the specified element
-