public class FloatArray extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CAPACITY |
| Constructor and Description |
|---|
FloatArray()
Creates a sorted int array with a default initial capacity
|
FloatArray(int capacity)
Creates an IntArray with a given initial capacity
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(float x)
add value to the array
|
void |
add(int pos,
float x) |
float[] |
array() |
boolean |
equals(Object obj) |
float |
get(int pos)
get element at position
|
int |
hashCode() |
boolean |
isEmpty() |
void |
set(int pos,
float x) |
int |
size() |
float[] |
toArray() |
String |
toString() |
static FloatArray |
wrap(float[] floats) |
public FloatArray()
public FloatArray(int capacity)
capacity - public void add(float x)
x - - value to be addedpublic void add(int pos,
float x)
public float get(int pos)
pos - public boolean isEmpty()
public float[] toArray()
public int size()
public void set(int pos,
float x)
public static FloatArray wrap(float[] floats)
public float[] array()
Copyright © 2017 Space Applications Services. All rights reserved.