public class Mapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Integer> |
mapping
The mappings.
|
Constructor and Description |
---|
Mapping() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all mappings.
|
int |
get(int src)
Returns a mapping.
|
void |
insert(int src,
int dst)
Adds a mapping.
|
void |
remove(int src)
Removes a mapping.
|
@NotNull private final java.util.List<java.lang.Integer> mapping
public void clear()
public int get(int src)
src
- the source indexpublic void insert(int src, int dst)
src
- the source indexdst
- the destination indexpublic void remove(int src)
src
- the source index