java.lang.Objectcom.realtime.crossfire.jxclient.util.Mapping
public class Mapping
Maintains a mapping from a set of integers to the same range of integers.
| Field Summary | |
|---|---|
private java.util.List<java.lang.Integer> |
mapping
The mappings. |
| Constructor Summary | |
|---|---|
Mapping()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final java.util.List<java.lang.Integer> mapping
| Constructor Detail |
|---|
public Mapping()
| Method Detail |
|---|
public void clear()
public int get(int src)
src - the source index
public void insert(int src,
int dst)
src - the source indexdst - the destination indexpublic void remove(int src)
src - the source index