Crossfire JXClient, Trunk
R20561
|
Maintains a bidirectional mapping from a set of integers to the same range of integers. More...
Public Member Functions | |
void | clear () |
Removes all mappings. More... | |
int | getDst (final int src) |
Returns a mapping. More... | |
int | getSrc (final int dst) |
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 Mapping | backward = new Mapping() |
The backward mappings. More... | |
final Mapping | forward = new Mapping() |
The forward mappings. More... | |
Maintains a bidirectional mapping from a set of integers to the same range of integers.
Definition at line 31 of file DoubleMapping.java.
void com.realtime.crossfire.jxclient.util.DoubleMapping.clear | ( | ) |
Removes all mappings.
Definition at line 48 of file DoubleMapping.java.
References com.realtime.crossfire.jxclient.util.Mapping.clear().
Referenced by com.realtime.crossfire.jxclient.items.InventoryView.setCurrentPlayerTag().
int com.realtime.crossfire.jxclient.util.DoubleMapping.getDst | ( | final int | src | ) |
Returns a mapping.
src | the source index |
Definition at line 78 of file DoubleMapping.java.
References com.realtime.crossfire.jxclient.util.Mapping.get().
int com.realtime.crossfire.jxclient.util.DoubleMapping.getSrc | ( | final int | dst | ) |
Returns a mapping.
dst | the destination index |
Definition at line 87 of file DoubleMapping.java.
References com.realtime.crossfire.jxclient.util.Mapping.get().
void com.realtime.crossfire.jxclient.util.DoubleMapping.insert | ( | final int | src, |
final int | dst | ||
) |
Adds a mapping.
src | the source index |
dst | the destination index |
Definition at line 58 of file DoubleMapping.java.
References com.realtime.crossfire.jxclient.util.Mapping.insert().
Referenced by com.realtime.crossfire.jxclient.util.DoubleMappingTest.test1().
void com.realtime.crossfire.jxclient.util.DoubleMapping.remove | ( | final int | src | ) |
Removes a mapping.
src | the source index |
Definition at line 67 of file DoubleMapping.java.
References com.realtime.crossfire.jxclient.util.Mapping.get(), and com.realtime.crossfire.jxclient.util.Mapping.remove().
Referenced by com.realtime.crossfire.jxclient.util.DoubleMappingTest.test1().
The backward mappings.
Maps destination index to source index.
Definition at line 43 of file DoubleMapping.java.
The forward mappings.
Maps source index to destination index.
Definition at line 37 of file DoubleMapping.java.