T
- node type to build, accepts classes extending Numberpublic class HipoNodeBuilder<T extends java.lang.Number>
extends java.lang.Object
Constructor and Description |
---|
HipoNodeBuilder()
Default Constructor.
|
HipoNodeBuilder(int limit)
Constructor with setting a limit on how many elements
maximum can be stored in the builder.
|
Modifier and Type | Method and Description |
---|---|
HipoNode |
buildNode(int group,
int item)
Builds a node from the array, type is determined by Template.
|
int |
getSize()
returns current size of the container.
|
boolean |
isFull()
returns false if the array capacity is less than predetermined
maximum size of the node, if limit is negative it always returns false.
|
void |
push(T value)
adds an element of given type to the end of the list.
|
void |
reset()
Resets the content of the node builder, the array is cleared.
|
public HipoNodeBuilder()
public HipoNodeBuilder(int limit)
limit
- maximum number of elements to storepublic void push(T value)
value
- element to add to the array.public boolean isFull()
public int getSize()
public void reset()
public HipoNode buildNode(int group, int item)
group
- group is for the nodeitem
- item id for the nodeJHepSim. A part of HSTOOLS. version-1.2