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 |
---|---|
MultiArrangement<K> |
MultiArrangement.clone()
Returns a deep copy of this map.
|
MultiArrangement<K> |
MultiArrangement.reorder(int... ordering)
Given an array or varargs of replacement indices for this MultiArrangement's iteration order, reorders this so the
first item in the returned version is the same as
getAt(ordering[0]) (with some care taken for negative
or too-large indices), the second item in the returned version is the same as getAt(ordering[1]) , etc. |
MultiArrangement<K> |
MultiArrangement.shuffle(squidpony.squidmath.IRNG rng)
Randomly alters the iteration order for this MultiArrangement using the given IRNG to shuffle.
|
MultiArrangement<K> |
MultiArrangement.take(int amount)
Produces a copy of this MultiArrangement, but only using up to the given amount of items to take.
|
Constructor and Description |
---|
MultiArrangement(MultiArrangement<? extends K> a) |
Copyright © Eben Howard 2012–2022. All rights reserved.