public final class IntsRef extends java.lang.Object implements java.lang.Comparable<IntsRef>, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int[] |
EMPTY_INTS |
int[] |
ints |
int |
length |
int |
offset |
| Constructor and Description |
|---|
IntsRef() |
IntsRef(int capacity) |
IntsRef(int[] ints,
int offset,
int length) |
| Modifier and Type | Method and 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(java.lang.Object other) |
void |
grow(int newLength)
Used to grow the reference array.
|
int |
hashCode() |
boolean |
intsEquals(IntsRef other) |
java.lang.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 IntsRef clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic boolean intsEquals(IntsRef other)
public int compareTo(IntsRef other)
compareTo in interface java.lang.Comparable<IntsRef>public void copyInts(IntsRef other)
public void grow(int newLength)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.