org.omnaest.utils.store
Class NestedDirectoryToByteArrayContainerListAdapter

java.lang.Object
  extended by org.omnaest.utils.structure.collection.CollectionAbstract<E>
      extended by org.omnaest.utils.structure.collection.list.ListAbstract<ByteArrayContainer>
          extended by org.omnaest.utils.store.NestedDirectoryToByteArrayContainerListAdapter
All Implemented Interfaces:
Serializable, Iterable<ByteArrayContainer>, Collection<ByteArrayContainer>, Deque<ByteArrayContainer>, List<ByteArrayContainer>, Queue<ByteArrayContainer>

public class NestedDirectoryToByteArrayContainerListAdapter
extends ListAbstract<ByteArrayContainer>

Adapter which takes a nested directory structure and allows to access it as a List of ByteArrayContainers

Author:
Omnaest
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.omnaest.utils.structure.collection.list.ListAbstract
ListAbstract.ListAbstractSublist<E>
 
Constructor Summary
NestedDirectoryToByteArrayContainerListAdapter(File baseDirectory)
           
NestedDirectoryToByteArrayContainerListAdapter(File baseDirectory, ExceptionHandlerSerializable exceptionHandlerSerializable)
           
 
Method Summary
 boolean add(ByteArrayContainer byteArrayContainer)
           
 void add(int index, ByteArrayContainer byteArrayContainer)
           
 void clear()
           
 ByteArrayContainer get(int index)
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 ByteArrayContainer remove(int index)
           
 ByteArrayContainer set(int index, ByteArrayContainer byteArrayContainer)
           
 int size()
           
 
Methods inherited from class org.omnaest.utils.structure.collection.list.ListAbstract
addAll, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, isValidIndex, iterator, listIterator, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, subList
 
Methods inherited from class org.omnaest.utils.structure.collection.CollectionAbstract
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

NestedDirectoryToByteArrayContainerListAdapter

public NestedDirectoryToByteArrayContainerListAdapter(File baseDirectory)

NestedDirectoryToByteArrayContainerListAdapter

public NestedDirectoryToByteArrayContainerListAdapter(File baseDirectory,
                                                      ExceptionHandlerSerializable exceptionHandlerSerializable)
Method Detail

add

public boolean add(ByteArrayContainer byteArrayContainer)

add

public void add(int index,
                ByteArrayContainer byteArrayContainer)

get

public ByteArrayContainer get(int index)

indexOf

public int indexOf(Object o)

lastIndexOf

public int lastIndexOf(Object o)

remove

public ByteArrayContainer remove(int index)

set

public ByteArrayContainer set(int index,
                              ByteArrayContainer byteArrayContainer)

size

public int size()

clear

public void clear()
Specified by:
clear in interface Collection<ByteArrayContainer>
Specified by:
clear in interface List<ByteArrayContainer>
Overrides:
clear in class ListAbstract<ByteArrayContainer>


Copyright © 2013. All Rights Reserved.