Class Overview
Methods for manipulating arrays.
Summary
Public Methods |
static
int
|
getNextSize(int targetSize)
|
static
int
|
getShrinkSize(int currentSize, int targetSize)
|
static
int[]
|
grow(int[] array)
|
static
long[]
|
grow(long[] array)
|
static
long[]
|
grow(long[] array, int minSize)
|
static
int[]
|
grow(int[] array, int minSize)
|
static
byte[]
|
grow(byte[] array)
|
static
byte[]
|
grow(byte[] array, int minSize)
|
static
int
|
hashCode(char[] array, int start, int end)
Returns hash of chars in range start (inclusive) to
end (inclusive)
|
static
int
|
hashCode(byte[] array, int start, int end)
Returns hash of chars in range start (inclusive) to
end (inclusive)
|
static
int
|
parseInt(char[] chars)
Parses the string argument as if it was an int value and returns the
result.
|
static
int
|
parseInt(char[] chars, int offset, int len, int radix)
Parses the string argument as if it was an int value and returns the
result.
|
static
int
|
parseInt(char[] chars, int offset, int len)
Parses a char array into an int.
|
static
byte[]
|
shrink(byte[] array, int targetSize)
|
static
int[]
|
shrink(int[] array, int targetSize)
|
static
long[]
|
shrink(long[] array, int targetSize)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
static
int
getNextSize
(int targetSize)
public
static
int
getShrinkSize
(int currentSize, int targetSize)
public
static
int[]
grow
(int[] array)
public
static
long[]
grow
(long[] array)
public
static
long[]
grow
(long[] array, int minSize)
public
static
int[]
grow
(int[] array, int minSize)
public
static
byte[]
grow
(byte[] array)
public
static
byte[]
grow
(byte[] array, int minSize)
public
static
int
hashCode
(char[] array, int start, int end)
Returns hash of chars in range start (inclusive) to
end (inclusive)
public
static
int
hashCode
(byte[] array, int start, int end)
Returns hash of chars in range start (inclusive) to
end (inclusive)
public
static
int
parseInt
(char[] chars)
Parses the string argument as if it was an int value and returns the
result. Throws NumberFormatException if the string does not represent an
int quantity.
Parameters
chars
| a string representation of an int quantity. |
Returns
- int the value represented by the argument
public
static
int
parseInt
(char[] chars, int offset, int len, int radix)
Parses the string argument as if it was an int value and returns the
result. Throws NumberFormatException if the string does not represent an
int quantity. The second argument specifies the radix to use when parsing
the value.
Parameters
chars
| a string representation of an int quantity. |
radix
| the base to use for conversion. |
Returns
- int the value represented by the argument
public
static
int
parseInt
(char[] chars, int offset, int len)
Parses a char array into an int.
Parameters
chars
| the character array |
offset
| The offset into the array |
len
| The length |
public
static
byte[]
shrink
(byte[] array, int targetSize)
public
static
int[]
shrink
(int[] array, int targetSize)
public
static
long[]
shrink
(long[] array, int targetSize)