Constructor and Description |
---|
IntsRefBuilder()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(int i)
Append the provided int to this buffer.
|
void |
clear()
Empty this builder.
|
void |
copyInts(int[] otherInts,
int otherOffset,
int otherLength)
Copies the given array into this instance.
|
void |
copyInts(IntsRef ints)
Copies the given array into this instance.
|
void |
copyUTF8Bytes(BytesRef bytes)
Copy the given UTF-8 bytes into this builder.
|
boolean |
equals(Object obj) |
IntsRef |
get()
Return a
IntsRef that points to the internal content of this
builder. |
void |
grow(int newLength)
Used to grow the reference array.
|
int |
hashCode() |
int |
intAt(int offset)
Return the int at the given offset.
|
int[] |
ints()
Return a reference to the ints of this builder.
|
int |
length()
Return the number of ints in this buffer.
|
void |
setIntAt(int offset,
int b)
Set an int.
|
void |
setLength(int length)
Set the length.
|
IntsRef |
toIntsRef()
Build a new
CharsRef that has the same content as this builder. |
public int[] ints()
public int length()
public void setLength(int length)
public void clear()
public int intAt(int offset)
public void setIntAt(int offset, int b)
public void append(int i)
public void grow(int newLength)
public void copyInts(int[] otherInts, int otherOffset, int otherLength)
public void copyInts(IntsRef ints)
public void copyUTF8Bytes(BytesRef bytes)
public IntsRef get()
IntsRef
that points to the internal content of this
builder. Any update to the content of this builder might invalidate
the provided ref
and vice-versa.public IntsRef toIntsRef()
CharsRef
that has the same content as this builder.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.