Uses of Class
squidpony.squidmath.BundleBundleBiMap
Package | Description |
---|---|
squidpony.squidmath |
Rarely-used data structures removed from squidlib-util and put in squidlib-extra in case they can be useful.
|
-
Uses of BundleBundleBiMap in squidpony.squidmath
Methods in squidpony.squidmath that return BundleBundleBiMap Modifier and Type Method Description BundleBundleBiMap<E1,E2>
BundleBundleBiMap. reorder(int... ordering)
Reorders this BundleBiMap usingordering
, which has the same length as this object'ssize()
and can be generated withArrayTools.range(int)
(which, if applied, would produce no change to the current ordering),IRNG.randomOrdering(int)
(which gives a random ordering, and if applied immediately would be the same as callingshuffle(IRNG)
), or made in some other way.BundleBundleBiMap<E1,E2>
BundleBundleBiMap. shuffle(IRNG rng)
Generates a random ordering with rng and applies the same ordering to all kinds of keys this has; they will maintain their current association to other keys but their ordering/indices will change.Methods in squidpony.squidmath with parameters of type BundleBundleBiMap Modifier and Type Method Description boolean
BundleBundleBiMap. putAll(BundleBundleBiMap<? extends E1,? extends E2> other)
Puts all unique E1 and E2 keys inother
into this K2, respecting other's ordering.Constructors in squidpony.squidmath with parameters of type BundleBundleBiMap Constructor Description BundleBundleBiMap(BundleBundleBiMap<E1,E2> other)
Constructs a BundleBiMap using another BundleBiMap to copy.