Package | Description |
---|---|
squidpony.squidmath |
Rarely-used data structures removed from squidlib-util and put in squidlib-extra in case they can be useful.
|
Modifier and Type | Method and Description |
---|---|
BundleBundleBiMap<E1,E2> |
BundleBundleBiMap.reorder(int... ordering)
Reorders this BundleBiMap using
ordering , which has the same length as this object's size()
and can be generated with ArrayTools.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 calling shuffle(IRNG) ), or made in some other way. |
BundleBundleBiMap<E1,E2> |
BundleBundleBiMap.shuffle(squidpony.squidmath.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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BundleBundleBiMap.putAll(BundleBundleBiMap<? extends E1,? extends E2> other)
Puts all unique E1 and E2 keys in
other into this K2, respecting other's ordering. |
Constructor and Description |
---|
BundleBundleBiMap(BundleBundleBiMap<E1,E2> other)
Constructs a BundleBiMap using another BundleBiMap to copy.
|
Copyright © Eben Howard 2012–2022. All rights reserved.