net.ranides.assira.collection
Class ListUtils.ConstList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by net.ranides.assira.collection.ListUtils.ConstList<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>
Enclosing class:
ListUtils

public static class ListUtils.ConstList<T>
extends AbstractList<T>


Constructor Summary
ListUtils.ConstList(Collection<? extends T> values)
           
ListUtils.ConstList(T[] values)
           
 
Method Summary
 T get(int index)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ListUtils.ConstList

public ListUtils.ConstList(T[] values)

ListUtils.ConstList

public ListUtils.ConstList(Collection<? extends T> values)
Method Detail

get

public T get(int index)
Specified by:
get in interface List<T>
Specified by:
get in class AbstractList<T>

size

public int size()
Specified by:
size in interface Collection<T>
Specified by:
size in interface List<T>
Specified by:
size in class AbstractCollection<T>


Copyright © 2013. All Rights Reserved.