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 |
---|---|
BundleBiMap<E,S> |
BundleBiMap.alterB(S past,
S future)
Changes an existing S key,
past , to another S key, future , if past exists in this BundleBiMap
and future does not yet exist in this BundleBiMap. |
BundleBiMap<E,S> |
BundleBiMap.alterSingleAt(int index,
S future)
Changes the S key at
index to another S key, future , if index is valid and future does not
yet exist in this K2. |
BundleBiMap<E,S> |
BundleBiMap.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. |
BundleBiMap<E,S> |
BundleBiMap.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 |
BundleBiMap.putAll(BundleBiMap<? extends E,? extends S> other)
Puts all unique E and S keys in
other into this K2, respecting other's ordering. |
Constructor and Description |
---|
BundleBiMap(BundleBiMap<E,S> other)
Constructs a BundleBiMap using another BundleBiMap to copy.
|
Copyright © Eben Howard 2012–2022. All rights reserved.