Cloneable
, Comparable<IntsRef>
public final class IntsRef extends Object implements Comparable<IntsRef>, Cloneable
Modifier and Type | Field | Description |
---|---|---|
static int[] |
EMPTY_INTS |
|
int[] |
ints |
|
int |
length |
|
int |
offset |
Constructor | Description |
---|---|
IntsRef() |
|
IntsRef(int capacity) |
|
IntsRef(int[] ints,
int offset,
int length) |
Modifier and Type | Method | Description |
---|---|---|
IntsRef |
clone() |
|
int |
compareTo(IntsRef other) |
Signed int order comparison
|
void |
copyInts(IntsRef other) |
|
static IntsRef |
deepCopyOf(IntsRef other) |
Creates a new IntsRef that points to a copy of the ints from
other |
boolean |
equals(Object other) |
|
void |
grow(int newLength) |
Used to grow the reference array.
|
int |
hashCode() |
|
boolean |
intsEquals(IntsRef other) |
|
String |
toString() |
public static final int[] EMPTY_INTS
public int[] ints
public int offset
public int length
public IntsRef()
public IntsRef(int capacity)
public IntsRef(int[] ints, int offset, int length)
public boolean intsEquals(IntsRef other)
public int compareTo(IntsRef other)
compareTo
in interface Comparable<IntsRef>
public void copyInts(IntsRef other)
public void grow(int newLength)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.