Package io.deephaven.base.array
Class FastArray<T>
java.lang.Object
io.deephaven.base.array.FastArray<T>
- Direct Known Subclasses:
FastArrayExt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal booleanfinal voidstatic <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> voidcopyValuesShallow(FastArray<C> THIS, FastArray<C> right) booleanfinal voidfinal voidfinal voidfinal voidfinal intfinal T[]inthashCode()static <C extends Copyable<C>>
booleanmaybeCopyValuesDeep(FastArray<C> THIS, FastArray<C> right) final Tnext()final voidfinal voidnormalReset(T resetValue) final Tpop()final voidstatic <C extends Externalizable>
voidreadExternal(FastArray<C> THIS, ObjectInput in) static <C> voidreadExternal(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> voidwriteExternal(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:
IOExceptionClassNotFoundException
-
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:
IOExceptionClassNotFoundException
-