org.skunk.util
Class GappedIntArray
java.lang.Object
|
+--org.skunk.util.GappedIntArray
- public class GappedIntArray
- extends java.lang.Object
a container for ints that keeps a gap in the array
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GappedIntArray
public GappedIntArray()
GappedIntArray
public GappedIntArray(int[] initialContent)
GappedIntArray
public GappedIntArray(int gapSize,
int gapOffset,
int[] initialContent)
length
public int length()
get
public int get(int offset)
throws java.lang.ArrayIndexOutOfBoundsException
get
public int[] get(int offset,
int length)
throws java.lang.ArrayIndexOutOfBoundsException
append
public void append(int[] someInts)
set
public void set(int offset,
int anInt)
set
public void set(int offset,
int[] someInts)
throws java.lang.ArrayIndexOutOfBoundsException
remove
public void remove(int offset,
int len)
getGapOffset
public int getGapOffset()
getCurrentGapSize
public int getCurrentGapSize()
insertAt
public void insertAt(int offset,
int[] someInts)
toIntArray
public int[] toIntArray()
toString
public static java.lang.String toString(int[] array)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)