Package io.deephaven.base.array
Class FastArray<T>
java.lang.Object
io.deephaven.base.array.FastArray<T>
- Direct Known Subclasses:
FastArrayExt
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
final boolean
final void
static <C> FastArray<C>
cloneShallow
(FastArray<C> THIS) static <C extends Copyable<C>>
voidcopyFullReset
(FastArray<C> THIS, C resetValue) static <C extends Copyable<C>>
voidcopyNormalReset
(FastArray<C> THIS, C resetValue) static <C extends Copyable<C>>
voidcopyValuesDeep
(FastArray<C> THIS, FastArray<C> right) static <C> void
copyValuesShallow
(FastArray<C> THIS, FastArray<C> right) boolean
final void
final void
final void
final void
final int
final T[]
int
hashCode()
static <C extends Copyable<C>>
booleanmaybeCopyValuesDeep
(FastArray<C> THIS, FastArray<C> right) final T
next()
final void
final void
normalReset
(T resetValue) final T
pop()
final void
static <C extends Externalizable>
voidreadExternal
(FastArray<C> THIS, ObjectInput in) static <C> void
readExternal
(FastArray<C> THIS, ObjectInput in, FastArray.ReadExternalFunction<C> readExternalFunction) removeThisIndex
(int index) removeThisIndexDontCareAboutOrder
(int index) toString()
toStringXml
(String pre) static <C extends Externalizable>
voidwriteExternal
(FastArray<C> THIS, ObjectOutput out) static <C extends Externalizable>
voidwriteExternal
(FastArray<C> THIS, ObjectOutput out, int maxToWrite) static <C> void
writeExternal
(FastArray<C> THIS, ObjectOutput out, FastArray.WriteExternalFunction<C> writeExternalFunction)
-
Field Details
-
clazz
-
newInstance
-
length
protected int length -
array
-
-
Constructor Details
-
FastArray
-
FastArray
-
FastArray
-
FastArray
-
FastArray
-
-
Method Details
-
getNewInstance
-
add
-
add
-
addUnique
-
fastAdd
-
fastAdd
-
next
-
pop
-
quickReset
public final void quickReset() -
normalReset
public final void normalReset() -
fullReset
public final void fullReset() -
normalReset
-
copyNormalReset
-
fullReset
-
copyFullReset
-
arrayReset
public final void arrayReset() -
getLength
public final int getLength() -
getUnsafeArray
-
removeThisIndex
-
removeThisIndexDontCareAboutOrder
-
equals
-
hashCode
public int hashCode() -
toString
-
toStringXml
-
copyValuesShallow
-
cloneShallow
-
copyValuesDeep
- Type Parameters:
C
-- Parameters:
THIS
- array will hold copies of right's content. Modifiedright
- content holder. Not-modified
-
maybeCopyValuesDeep
-
cloneDeep
-
writeExternal
public static <C extends Externalizable> void writeExternal(FastArray<C> THIS, ObjectOutput out) throws IOException - Throws:
IOException
-
writeExternal
public static <C extends Externalizable> void writeExternal(FastArray<C> THIS, ObjectOutput out, int maxToWrite) throws IOException - Throws:
IOException
-
readExternal
public static <C extends Externalizable> void readExternal(FastArray<C> THIS, ObjectInput in) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-
writeExternal
public static <C> void writeExternal(FastArray<C> THIS, ObjectOutput out, FastArray.WriteExternalFunction<C> writeExternalFunction) throws IOException - Throws:
IOException
-
readExternal
public static <C> void readExternal(FastArray<C> THIS, ObjectInput in, FastArray.ReadExternalFunction<C> readExternalFunction) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-