ua.gradsoft.javachecker.util
Class IntegerOrderList

java.lang.Object
  extended by ua.gradsoft.javachecker.util.IntegerOrderList
All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.List<java.lang.Integer>

public class IntegerOrderList
extends java.lang.Object
implements java.util.List<java.lang.Integer>

Author:
rssh

Constructor Summary
IntegerOrderList(int size)
          Creates a new instance of IntegerOrderList
IntegerOrderList(int lbound, int hbound)
          Creates a new instance of IntegerOrderList
 
Method Summary
 boolean add(java.lang.Integer v)
           
 void add(int index, java.lang.Integer v)
           
 boolean addAll(java.util.Collection<? extends java.lang.Integer> c)
           
 boolean addAll(int index, java.util.Collection<? extends java.lang.Integer> c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 boolean containsAllSame(IntegerOrderList l)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Integer get(int index)
           
 int hashCode()
           
 int indexOf(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator<java.lang.Integer> iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<java.lang.Integer> listIterator()
           
 java.util.ListIterator<java.lang.Integer> listIterator(int index)
           
 java.lang.Integer remove(int i)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 java.lang.Integer set(int index, java.lang.Integer element)
           
 int size()
           
 java.util.List<java.lang.Integer> subList(int x1, int x2)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] x)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerOrderList

public IntegerOrderList(int size)
Creates a new instance of IntegerOrderList


IntegerOrderList

public IntegerOrderList(int lbound,
                        int hbound)
Creates a new instance of IntegerOrderList

Method Detail

add

public boolean add(java.lang.Integer v)
Specified by:
add in interface java.util.Collection<java.lang.Integer>
Specified by:
add in interface java.util.List<java.lang.Integer>

add

public void add(int index,
                java.lang.Integer v)
Specified by:
add in interface java.util.List<java.lang.Integer>

addAll

public boolean addAll(java.util.Collection<? extends java.lang.Integer> c)
Specified by:
addAll in interface java.util.Collection<java.lang.Integer>
Specified by:
addAll in interface java.util.List<java.lang.Integer>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends java.lang.Integer> c)
Specified by:
addAll in interface java.util.List<java.lang.Integer>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<java.lang.Integer>
Specified by:
clear in interface java.util.List<java.lang.Integer>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<java.lang.Integer>
Specified by:
contains in interface java.util.List<java.lang.Integer>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<java.lang.Integer>
Specified by:
containsAll in interface java.util.List<java.lang.Integer>

containsAllSame

public boolean containsAllSame(IntegerOrderList l)

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection<java.lang.Integer>
Specified by:
equals in interface java.util.List<java.lang.Integer>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<java.lang.Integer>
Specified by:
hashCode in interface java.util.List<java.lang.Integer>
Overrides:
hashCode in class java.lang.Object

get

public java.lang.Integer get(int index)
Specified by:
get in interface java.util.List<java.lang.Integer>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<java.lang.Integer>

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<java.lang.Integer>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<java.lang.Integer>
Specified by:
isEmpty in interface java.util.List<java.lang.Integer>

size

public int size()
Specified by:
size in interface java.util.Collection<java.lang.Integer>
Specified by:
size in interface java.util.List<java.lang.Integer>

set

public java.lang.Integer set(int index,
                             java.lang.Integer element)
Specified by:
set in interface java.util.List<java.lang.Integer>

remove

public java.lang.Integer remove(int i)
Specified by:
remove in interface java.util.List<java.lang.Integer>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<java.lang.Integer>
Specified by:
remove in interface java.util.List<java.lang.Integer>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<java.lang.Integer>
Specified by:
removeAll in interface java.util.List<java.lang.Integer>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<java.lang.Integer>
Specified by:
retainAll in interface java.util.List<java.lang.Integer>

subList

public java.util.List<java.lang.Integer> subList(int x1,
                                                 int x2)
Specified by:
subList in interface java.util.List<java.lang.Integer>

iterator

public java.util.Iterator<java.lang.Integer> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.Integer>
Specified by:
iterator in interface java.util.Collection<java.lang.Integer>
Specified by:
iterator in interface java.util.List<java.lang.Integer>

listIterator

public java.util.ListIterator<java.lang.Integer> listIterator()
Specified by:
listIterator in interface java.util.List<java.lang.Integer>

listIterator

public java.util.ListIterator<java.lang.Integer> listIterator(int index)
Specified by:
listIterator in interface java.util.List<java.lang.Integer>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<java.lang.Integer>
Specified by:
toArray in interface java.util.List<java.lang.Integer>

toArray

public <T> T[] toArray(T[] x)
Specified by:
toArray in interface java.util.Collection<java.lang.Integer>
Specified by:
toArray in interface java.util.List<java.lang.Integer>