22 package com.realtime.crossfire.jxclient.util;
24 import org.jetbrains.annotations.NotNull;
58 public void insert(
final int src,
final int dst) {
67 public void remove(
final int src) {
68 final int dst = forward.
get(src);
79 return forward.
get(src);
88 return backward.
get(dst);
Maintains a mapping from a set of integers to the same range of integers.
void clear()
Removes all mappings.
int getSrc(final int dst)
Returns a mapping.
final Mapping backward
The backward mappings.
void insert(final int src, final int dst)
Adds a mapping.
void remove(final int src)
Removes a mapping.
int get(final int src)
Returns a mapping.
void insert(final int src, final int dst)
Adds a mapping.
final Mapping forward
The forward mappings.
void clear()
Removes all mappings.
int getDst(final int src)
Returns a mapping.
Maintains a bidirectional mapping from a set of integers to the same range of integers.