public class ArrayStorage extends Object
HashMap with HashableArray as keys and Integer as values. Implemented for purposes of storing arrays with their unique integer codes.
| Constructor and Description |
|---|
ArrayStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long[] array)
Add a new array to the storage.
|
Integer |
get(long[] array)
Gets the value associated with the provided array.
|
Set<Map.Entry<HashableArray,Integer>> |
getAll()
Gets all stored arrays with its identifiers.
|
int |
size()
Gets size of the storage.
|
public void add(long[] array)
array - is the array to add
public Integer get(long[] array)
array - the array to obtain its sequence number
public int size()
public Set<Map.Entry<HashableArray,Integer>> getAll()
Copyright © 1998–2020 iText Group NV. All rights reserved.