public class ObjectArrayRef<T> extends ArrayRef<T[]>
ArrayRef.Allocator<T>
Constructor and Description |
---|
ObjectArrayRef(Collection<T> src,
ArrayRef.Allocator<T[]> allocator) |
ObjectArrayRef(Collection<T> src,
int off,
int len,
ArrayRef.Allocator<T[]> allocator) |
ObjectArrayRef(int capacity,
ArrayRef.Allocator<T[]> allocator) |
ObjectArrayRef(ObjectArrayRef<T> src,
ArrayRef.Allocator<T[]> allocator) |
ObjectArrayRef(ObjectArrayRef<T> src,
int off,
int len,
ArrayRef.Allocator<T[]> allocator) |
ObjectArrayRef(T[] src,
ArrayRef.Allocator<T[]> allocator) |
ObjectArrayRef(T[] src,
int off,
int len,
ArrayRef.Allocator<T[]> allocator) |
Modifier and Type | Method and Description |
---|---|
protected T[] |
allocBuffer(int cap) |
boolean |
canEqual(Object obj) |
boolean |
equals(Object obj)
Note that since this class is basically a glorified pointer, the Equals method merely checks that they both point to
the same memory location.
|
T |
getElement(int idx) |
int |
hashCode() |
void |
setElement(int idx,
T val) |
int |
totalBufferSize(T[] buf) |
advance, buffer, capacity, clear, copy, copyIn, copyIn, copyOut, copyOut, ensureCapacity, ensureSpareCapacity, getBuffer, getOffset, getOffset, getSize, incrementSize, limit, offset, offset, set, set, set, set, set, setSize, size, spareCapacity, toArray, toArray, toArray, toArray, toString, totalBufferSize
public ObjectArrayRef(T[] src, ArrayRef.Allocator<T[]> allocator)
public ObjectArrayRef(ObjectArrayRef<T> src, ArrayRef.Allocator<T[]> allocator)
public ObjectArrayRef(ObjectArrayRef<T> src, int off, int len, ArrayRef.Allocator<T[]> allocator)
public ObjectArrayRef(Collection<T> src, ArrayRef.Allocator<T[]> allocator)
public ObjectArrayRef(int capacity, ArrayRef.Allocator<T[]> allocator)
public ObjectArrayRef(T[] src, int off, int len, ArrayRef.Allocator<T[]> allocator)
public ObjectArrayRef(Collection<T> src, int off, int len, ArrayRef.Allocator<T[]> allocator)
public int totalBufferSize(T[] buf)
totalBufferSize
in class ArrayRef<T[]>
protected T[] allocBuffer(int cap)
allocBuffer
in class ArrayRef<T[]>
public T getElement(int idx)
public void setElement(int idx, T val)
public boolean equals(Object obj)
ArrayRef
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.