com.metsci.glimpse.util
Class PrimitiveVector

java.lang.Object
  extended by com.metsci.glimpse.util.PrimitiveVector
Direct Known Subclasses:
PrimitiveVector.Double, PrimitiveVector.Float, PrimitiveVector.Integer, PrimitiveVector.Long

public abstract class PrimitiveVector
extends java.lang.Object

A collection of classes for storing a growable array of primitives including double, float, integer, and long primitives.

A newly constructed PrimitiveVector begins with an underlying storage array of 10 elements (the size may be overridden by using the appropriate constructor). Whenever its space is exhausted, the underlying array will grow by a factor of 2 the next time an element is added. The underlying array may grow by at most 50,000 when it expands.

Author:
osborn

Nested Class Summary
static class PrimitiveVector.Double
           
static class PrimitiveVector.Float
           
static class PrimitiveVector.Integer
           
static class PrimitiveVector.Long
           
 
Constructor Summary
PrimitiveVector()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveVector

public PrimitiveVector()


Copyright © 2012 Metron, Inc.. All Rights Reserved.