Crossfire JXClient, Trunk
R20561
|
Maintains a mapping from a set of integers to the same range of integers. More...
Public Member Functions | |
void | clear () |
Removes all mappings. More... | |
int | get (final int src) |
Returns a mapping. More... | |
void | insert (final int src, final int dst) |
Adds a mapping. More... | |
void | remove (final int src) |
Removes a mapping. More... | |
Private Attributes | |
final List< Integer > | mapping = new ArrayList<>() |
The mappings. More... | |
Maintains a mapping from a set of integers to the same range of integers.
Definition at line 32 of file Mapping.java.
void com.realtime.crossfire.jxclient.util.Mapping.clear | ( | ) |
Removes all mappings.
Definition at line 43 of file Mapping.java.
Referenced by com.realtime.crossfire.jxclient.util.DoubleMapping.clear().
int com.realtime.crossfire.jxclient.util.Mapping.get | ( | final int | src | ) |
Returns a mapping.
src | the source index |
Definition at line 82 of file Mapping.java.
Referenced by com.realtime.crossfire.jxclient.util.DoubleMapping.getDst(), com.realtime.crossfire.jxclient.util.DoubleMapping.getSrc(), and com.realtime.crossfire.jxclient.util.DoubleMapping.remove().
void com.realtime.crossfire.jxclient.util.Mapping.insert | ( | final int | src, |
final int | dst | ||
) |
Adds a mapping.
src | the source index |
dst | the destination index |
Definition at line 52 of file Mapping.java.
Referenced by com.realtime.crossfire.jxclient.util.DoubleMapping.insert().
void com.realtime.crossfire.jxclient.util.Mapping.remove | ( | final int | src | ) |
Removes a mapping.
src | the source index |
Definition at line 66 of file Mapping.java.
Referenced by com.realtime.crossfire.jxclient.util.DoubleMapping.remove().
|
private |